EricBoisvert Posted January 29, 2009 Share 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 29, 2009 Developers Share 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. Link to comment Share on other sites More sharing options...
EricBoisvert Posted January 29, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted January 29, 2009 Developers Share 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. Link to comment Share on other sites More sharing options...
EricBoisvert Posted January 30, 2009 Author Share Posted January 30, 2009 Everythnig work fine with the command now. Thanks a lot. 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