Jump to content
Sign in to follow this  
EricBoisvert

Runwait command problem

Recommended Posts

EricBoisvert

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.

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
EricBoisvert

It's working, the ghost start. But at the end, I still got an error message invalid parameter, you know why?

Edited by EricBoisvert

Share this post


Link to post
Share on other sites
EricBoisvert

Everythnig work fine with the command now. Thanks a lot.

Share this post


Link to post
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
Sign in to follow this  

×