L3G3NdKillEr 0 Posted November 1, 2010 I want my script to receive command-line arguments.. e.g. C:\myScript.exe -run ==> something like that. link to post or example? thanks. i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================> Share this post Link to post Share on other sites
Mat 376 Posted November 1, 2010 http://dundats.mvps.org/help/html/intro/running.htm#CommandLine AutoIt Project Listing Share this post Link to post Share on other sites
L3G3NdKillEr 0 Posted November 1, 2010 thanks .. =) Any example on how to use it in script or how it works? i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================> Share this post Link to post Share on other sites
Mobius 89 Posted November 1, 2010 (edited) ~ Edited March 2, 2011 by Mobius Share this post Link to post Share on other sites
Mat 376 Posted November 1, 2010 If $Cmdline[0] Then ; Make sure you put the THEN or it won't work... $TMP = "" For $i = 1 To $Cmdline[0] $TMP &= "Parameter " & $i & " = " & $Cmdline[$i] & @LF Next MsgBox(64, @ScriptName, $TMP) Else MsgBox(64, @ScriptName, "No commandline parameters passed") EndIf Exit AutoIt Project Listing Share this post Link to post Share on other sites