Jump to content

Illegal Character


Recommended Posts

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

  • Developers

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...