Jump to content

Runwait command problem


Recommended Posts

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

  • Developers

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

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...