usvpn Posted January 18, 2012 Posted January 18, 2012 Hi, I want to create a registry string : HKEY_CURRENT_USER\Software\Nico Mak Computing\WinZip\WinZip And set the value of "0" to it. So the shortest way is: Dim ExtractKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\Nico Mak Computing\WinZip\WinZip") ExtractKey.SetValue("OpnExplFolder", "0") ExtractKey.Close() ? I'm doing it good and is there a shorter way? And .Close is necessary? Thank you very much... Quote
LamKat Posted February 1, 2012 Posted February 1, 2012 1) .Close is a good idea as without it the file is still open in the RAM. It is good practice. 2) i can't see a quicker way of doing it, unless you want to change your 'Explicit' option to off. so don't change a thing in this case, as it is a small enough peace of coding anyway > LamKat Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.