elgaza Posted July 16, 2007 Share Posted July 16, 2007 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 More sharing options...
smashly Posted July 16, 2007 Share Posted July 16, 2007 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 Link to comment Share on other sites More sharing options...
elgaza Posted July 16, 2007 Author Share Posted July 16, 2007 (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 July 16, 2007 by elgaza Link to comment Share on other sites More sharing options...
smashly Posted July 16, 2007 Share Posted July 16, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now