keithy Posted December 13, 2006 Share Posted December 13, 2006 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 Link to comment Share on other sites More sharing options...
Helge Posted December 13, 2006 Share Posted December 13, 2006 $CmdLine[0] is number of parameters $CmdLine[1] is param 1 (after the script name) $CmdLine[2] is param 2 etc Link to comment Share on other sites More sharing options...
keithy Posted December 13, 2006 Author Share Posted December 13, 2006 Thank you Helge!! It all works now. Oh, and Happy Anniversary for yesterday ! Keithy Link to comment Share on other sites More sharing options...
Helge Posted December 13, 2006 Share Posted December 13, 2006 Yay, 3 years and 1 day at this forum ! Link to comment Share on other sites More sharing options...
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