Jump to content

Working with the Command Line


Recommended Posts

Hello,

How do I take arguments and pass them from the command line, so . . .

I am wanting to do this from inside a batch file more or less would like to replace some dos commands

with my own .au3 scripts.

So "echo Hello World" would become "AutoitScript.au3 Hello World" etc . . .

Look under "Running Scripts" in the helpfile, there is some info on Command Line Parameters there.

Basically There is an array like this (from helpfile)

$CmdLine[0] is number of parameters
$CmdLine[1] is param 1 (after the script name)
$CmdLine[2] is param 2 etc
[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
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...