Jump to content

How to run a file with parameter


Recommended Posts

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.

Link to comment
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

I tried

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

where am I worng?

Thank You.

Edited by elgaza
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...