Jump to content

Recommended Posts

Posted

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.

Posted

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

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
Posted

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

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
×
×
  • Create New...