Jump to content

Run/RunWait syntax

Recommended Posts

Guest jjakober

I am trying to execute the following exe using the run command:

\\bloomsday\csav$\techtest\setup.exe /d ADV_CMDLINE="/t custom.mst" transforms=custom.mst NO_GUIAPPS=1

This is the syntax I use to execute it from the command prompt, but how do I format the syntax to execute it with the run command??

Any help would be greatly appreciated!!


Link to post
Share on other sites

try this:

run('\\bloomsday\csav$\techtest\setup.exe /d ADV_CMDLINE="/t custom.mst" transforms=custom.mst NO_GUIAPPS=1')

Command line arguments with " are something that gets you the first time. AutoIt's run command wants to enclose the arguments in quotes, so you can do the double quote thing, or I find it easier to enclose it in the single quote '


run(' my.exe /myarg:billybob="Handwash" /s /o /bill "c:\bobs big boy\dinner.txt"   ')
or double quote version.
run("my.exe /myarg:billybob=""Handwash"" /s /o /bill ""c:\bobs big boy\dinner.txt"")

double double quotes confuse me :whistle:

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...