blakel Posted May 2, 2009 Posted May 2, 2009 (edited) That was an example of nested quotes, which you will need. Run will work Try Run("regedit.exe blah",@WindowsDir) ShellExecute is for, as an example, ShellExecute("SomeDoc.pdf") Edited May 2, 2009 by blakel
microbious Posted May 2, 2009 Author Posted May 2, 2009 ShellExecute( "regedit.exe", "/E C:\path\file with space.reg HKEY_CURRENT_USER\path with space\test" ) please correct this script for me not my replacing anythign in it but by adding something small that i am missing for so long. I CANT SLEEP i need this done lol
Developers Jos Posted May 2, 2009 Developers Posted May 2, 2009 something like: ShellExecute( "regedit.exe", '/E "C:\path\file with space.reg" "HKEY_CURRENT_USER\path with space\test"' ) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
blakel Posted May 2, 2009 Posted May 2, 2009 $rslt = RunWait(@WindowsDir & '\regedit.exe /e "C:\Documents and Settings\Administrator\My Documents\file.reg" "HKEY_CURRENT_USER\test"',@WindowsDir,@SW_HIDE) test $rslt for error
microbious Posted May 2, 2009 Author Posted May 2, 2009 (edited) Thanks Both of your examples worked And big thanks for 2 examples because i learned allot from them. Edited May 2, 2009 by stoopid
LeHuynhNam Posted August 10, 2010 Posted August 10, 2010 I think if we have a virus which disable regedit 2 codes are Unable to run I use it script but dont know why doesn't it run? 1st time i run it worked well but now isnt working $URL = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" $MyDocsFolder = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}" $var = FileSaveDialog( "Save to a registry file (*.reg)", $MyDocsFolder, "Registry Files (*.reg)", 2+16) If Not @error Then ;MsgBox(0,"","REGEDIT /E "& FileGetShortName($var)&".reg "&''&_GUICtrlStatusBar_GetText ($StatusBar, 1)&'') _RunDOS("REGEDIT /E "& '"'&FileGetShortName($var)& '.reg" "'&$URL&'"') EndIf
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