Jump to content

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


Recommended Posts

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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...