Sign in to follow this  
Followers 0
Paul Rothschild

Sorry, newbie here...RunWait an exe and pass a parameter

2 posts in this topic

I am attempting to script the installation of a VPN client using alternate credentials for users who are not local administrators.

From a command line, I can run the install and direct it to a configuration file as shown below:

*Start***********************

ngsetup.exe -f=ngsetup.ini

*End************************

In AutoIt, my script succeeds when run as below:

*Start***********************

RunWait("c:\aitemp\ngsetup.exe")

*End************************

However, when I add the parameter -f as shown below:

*Start***********************

RunWait("c:\aitemp\ngsetup.exe -f=nsetup.ini")

*End************************

the install proceeds as though the parameter were being ignored.

Can anyone suggest another method for running this exe and passing the required parameter to it?

Thanks,

Paul

Share this post


Link to post
Share on other sites



runwait(@comspec & ' /c ' & 'c:\aitemp\ngsetup.exe -f=nsetup.ini')

it's actually in the notes section of that item in the help file.


---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

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