Sign in to follow this  
Followers 0
thepip3r

Making your Exe read command-line arguments it's passed

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

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

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