Jump to content
Sign in to follow this  
keithy

PAssing Parameters to AutoIT script/exe

Recommended Posts

keithy

I am looking for an example of how to emulate the old Dos command line thing of "program.exe param1 , param2" etc to pass parameters into a AutoIT script.

I have written a script that selects and displays a record from a MS-SQL table, and allows editing and subsequent updates, but I now want to pass the select criteria to the script from another program.

I have spent the last hour trying to guess keywords with no success. Any help with the keyword terminology, an example script, or an appropriate topic would be much appreciated.

TIA

Share this post


Link to post
Share on other sites
Helge

$CmdLine[0] is number of parameters

$CmdLine[1] is param 1 (after the script name)

$CmdLine[2] is param 2 etc

Share this post


Link to post
Share on other sites
keithy

Thank you Helge!!

It all works now. Oh, and Happy Anniversary for yesterday !

Keithy

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.