Jump to content
Sign in to follow this  
bourny

create command line switches

Recommended Posts

bourny

I am looking to create a script and when compiled I can run switches against it....

Does anyone know how to do this ,...

E.G .

Myscript.exe -companyname

This will take "companyname" and assign it as a variable that I can check in the script for some logic..

Thanks

Share this post


Link to post
Share on other sites
zorphnog

The built-in array $CmdLine. Search for it in the Help Files.

Edited by zorphnog

Share this post


Link to post
Share on other sites
bourny

Thanks,

Just found it...

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  

×