EricBoisvert Posted January 29, 2009 Posted January 29, 2009 Hello, I just want to run this script and I have an error message like invalid parameter all the time. Local $command = "C:\Program Files\Symantec\Ghost\Ghost32.exe -batch -chkimg,\\stinas4\Ghost\stiah1\stiah1.gho" RunWait(@ComSpec & " /c " & '"' & $command & '"',"", @SW_SHOW) Can someone help me with this? Thanks a lot.
Developers Jos Posted January 29, 2009 Developers Posted January 29, 2009 Try: Local $command = '""C:\Program Files\Symantec\Ghost\Ghost32.exe" -batch -chkimg,\\stinas4\Ghost\stiah1\stiah1.gho"' RunWait(@ComSpec & " /k " & $command , "", @SW_SHOW) replace the /K for /C when it works. 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.
EricBoisvert Posted January 29, 2009 Author Posted January 29, 2009 (edited) It's working, the ghost start. But at the end, I still got an error message invalid parameter, you know why? Edited January 29, 2009 by EricBoisvert
Developers Jos Posted January 29, 2009 Developers Posted January 29, 2009 What would the commandline be when running from the CMD prompt ? 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.
EricBoisvert Posted January 30, 2009 Author Posted January 30, 2009 Everythnig work fine with the command now. Thanks a lot.
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