L3G3NdKillEr Posted November 1, 2010 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=----=========================>
Mat Posted November 1, 2010 Posted November 1, 2010 http://dundats.mvps.org/help/html/intro/running.htm#CommandLine AutoIt Project Listing
L3G3NdKillEr Posted November 1, 2010 Author 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=----=========================>
Mat Posted November 1, 2010 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
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