Sign in to follow this  
Followers 0
elgaza

How to run a file with parameter

4 posts in this topic

Hi

I would like to know how to run an execute an external file with parameter

I saw the command Run ( "filename" [, "workingdir" [, flag[, standard_i/o_flag]]] )

but I am not too sure where I can push in some parameter.

Thank you very much ahead.

Share this post


Link to post
Share on other sites



Quick example of using run to open notepad with the parameter of boot.ini (based on a pc that's running xp)

Run(@SystemDir & "\notepad.exe" & " " & @HomeDrive & "\boot.ini")
Basically you fit the parameter in the with the "Filename" parameter of the Run function.

Cheers

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Quick example of using run to open notepad with the parameter of boot.ini (based on a pc that's running xp)

Run(@SystemDir & "\notepad.exe" & " " & @HomeDrive & "\boot.ini")
Basically you fit the parameter in the with the "Filename" parameter of the Run function.

Cheers

I tried

Run "AutoPatcher.exe /nolicense /nocrashhandler /answerfile:custom.aaf",,,@SW_MAXIMIZE

where am I worng?

Thank You.

Edited by elgaza

Share this post


Link to post
Share on other sites

Try adding the path to the file your trying to run..

Adjust the file path to suit your needs.

Run ("D:\Current Updates\AutoPatcher.exe" & " /nolicense /nocrashhandler /answerfile:custom.aaf", "",@SW_MAXIMIZE)

Cheers

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