Xavia Posted May 14, 2015 Posted May 14, 2015 (edited) I need to go to this directory in regedit Edited May 15, 2015 by Xavia
SadBunny Posted May 14, 2015 Posted May 14, 2015 (edited) What do you mean by "go into a directory"? Do you mean automating the registry editor to browse to that directory (hopefully not), or do you mean peeking/poking keys/values in that directory? If the latter, try RegRead(), RegEdit(), RegDelete() etc.. They have good helpfiles and working examples.Note that you'll most probably need to add #RequireAdmin to the top of your script to elevate to admin privileges, otherwise Windows won't let you mess with the registry Edited May 14, 2015 by SadBunny typo Roses are FF0000, violets are 0000FF... All my base are belong to you.
Xavia Posted May 14, 2015 Author Posted May 14, 2015 I wanted for my script to go to:conputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\McAfee SiteAdvisor Servicebut since Mcafee wont be constant, I plan to store a variable in a notepad and read it, so what will happen isconputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\$Variable
Chimaera Posted May 14, 2015 Posted May 14, 2015 (edited) If you mean open regedit at a specific key?Regedit itself is difficult to automatebut you can change the last page it viewed and use something like this vbs scriptSet WshShell = CreateObject("WScript.Shell") WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Lastkey","HKEY_LOCAL_MACHINE\SYSTEM\Setup\Test","REG_SZ" WshShell.Run "regedit", 1,True Set WshShell = Nothingjust save it as regchange,vbs and it should work, there are versions on the AutoIt forum but i had trouble getting them to workJust change the bit in blue before you save it to your key Edited May 14, 2015 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices()
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now