Sign in to follow this  
Followers 0
mikelee33

Reading input file as "-i file_name"

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Example:

$file = "c:\boot.ini"
Run(@ComSpec & " /c dir /a " & $file & ">c:\log.txt", "", @SW_HIDE)
ShellExecute("c:\log.txt")
:) Edited by rasim

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