mikelee33 Posted March 11, 2008 Posted March 11, 2008 Hello, The gui I am currently working on for a command-line program requires a "-i" to precede the input file name. This is unlike what I have previously dealt with and I don't know how to accommodate it. Would I place it somewhere on the run line? Run ( $prog &' '& $option &' "' &GUICtrlRead($file)&'"',"",@SW_HIDE ) For example: the above would need to run "program.exe -a -b -c -i file_name", where a,b and c are options. I'm sure the simple solution should be obvious to me, but unfortunately it isn't. Any direction appreciated. Mike
rasim Posted March 11, 2008 Posted March 11, 2008 (edited) Example: $file = "c:\boot.ini" Run(@ComSpec & " /c dir /a " & $file & ">c:\log.txt", "", @SW_HIDE) ShellExecute("c:\log.txt") Edited March 11, 2008 by rasim
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