Sign in to follow this  
Followers 0
keithy

PAssing Parameters to AutoIT script/exe

4 posts in this topic

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



$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

Thank you Helge!!

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

Keithy

Share this post


Link to post
Share on other sites

Yay, 3 years and 1 day at this forum ! :P

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  
Followers 0