Mcky Posted March 27, 2004 Share Posted March 27, 2004 How do i pass commands line to my script?? Example: My script has two part. Start it without any command line and it will proceed normally. Start it with a command line "-config" and it will configures settings. How do i that? My website: (Lots of AutoIt compiled programs+GameMaker games)http://mcky.sitesled.comMy AutoIt projects:Mcky's CalEntry - Calendar schedulingMcky's Web Extractor - Web page links extractorMcky's Appkey- Powerful Hotkey-listing tool[quote]I wish I was never born. I am just a lonely soul in this world... :([/quote] Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 27, 2004 Administrators Share Posted March 27, 2004 AutoIt3.exe script.au3 -config CompiledScript.exe -config $CmdLine[0] is the number for parameters (in this case 1) $CmdLine[1] is "-config" Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Developers Jos Posted March 27, 2004 Developers Share Posted March 27, 2004 if $CmdLine[0] > 0 then if $CmdLine[1] = "-config" then ; do you config stuf endif endif SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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