joesedroid Posted April 5, 2016 Share Posted April 5, 2016 Hello all, im still learning this but im getting an odd error with my batch file trying to convert it to a .exe RunWait(@ComSpec & " /c "&"cscript REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Novell Client for Windows" && %SystemRoot%\System32\rundll32 "C:\Program Files\Novell\Client\ncsetup.dll" NWUninstallClient /s","",@SW_HIDE) RunWait(@ComSpec & " /c "&"cscript REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Novell Client for Windows" /f","",@SW_HIDE) It is saying that I have Illegal Chars. Can anyone tell me if its the _ ? Thanks! Link to comment Share on other sites More sharing options...
jguinch Posted April 5, 2016 Share Posted April 5, 2016 cscript is not needed. Also, you have to escape the quotes (and doubles quotes). Why don't you use RegRead and RegDelete ? Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
joesedroid Posted April 5, 2016 Author Share Posted April 5, 2016 Ok, thanks, just not sure what im doing yet. ive only used runwait and not escape quotes. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 5, 2016 Developers Share Posted April 5, 2016 Just open the helpfile and look at the information on these commands. As to your original issue: you have errors in your double quotes. this way is probably correct: RunWait(@ComSpec & ' /c cscript REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Novell Client for Windows" && %SystemRoot%\System32\rundll32 "C:\Program Files\Novell\Client\ncsetup.dll" NWUninstallClient /s',"",@SW_HIDE) RunWait(@ComSpec & ' /c cscript REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Novell Client for Windows" /f',"",@SW_HIDE) Jos 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. Link to comment Share on other sites More sharing options...
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