Sign in to follow this  
Followers 0
Guest jjakober

Run/RunWait syntax

3 posts in this topic

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

jjakober

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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 '

Example:

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.

Share this post


Link to post
Share on other sites

Thank you, thank you, thank you!!!!

I can't believe it was so easy.

Thanks again,

jjakober

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  
Followers 0