thepip3r Posted August 18, 2008 Share Posted August 18, 2008 How would I go about setting up my compiled script to read passed arguments from the command-line? I've searched the forums but can't seem to find any examples. To try and clarify, I'm trying to set up something like: C:\>my_compiled_code.exe binary where "binary" is the argument that my exe can read.. any assistance would be greatly appreciated. TIA. My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume Link to comment Share on other sites More sharing options...
Andreik Posted August 18, 2008 Share Posted August 18, 2008 (edited) How would I go about setting up my compiled script to read passed arguments from the command-line? I've searched the forums but can't seem to find any examples. To try and clarify, I'm trying to set up something like: C:\>my_compiled_code.exe binary where "binary" is the argument that my exe can read.. any assistance would be greatly appreciated. TIA. Search in help file about Command Line Parameters and read about $CmdLine. Hope that helps. Edited August 18, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
thepip3r Posted August 18, 2008 Author Share Posted August 18, 2008 are you saying that if I just Msgbox($CmdLine) in my exe, it will display the entire string after my executable?? if not, could you be any more specific? My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume Link to comment Share on other sites More sharing options...
thepip3r Posted August 18, 2008 Author Share Posted August 18, 2008 ahh nm... ty, answer found here:http://www.autoitscript.com/autoit3/docs/i...htm#CommandLine My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume 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