zuk Posted October 19, 2006 Posted October 19, 2006 Hello everybody ! I would to know if that's possible to add an option like in some DOS commands, directly for an autoit compiled application. Ex: "myprog.exe" is now working and launch a "result.txt" file at the end. This is usefull when launching it one time... But know I would like to run it as a windows task. And of course I don't want to show the "result.txt" file otherwise there will be many files opened at the end of the week ! So, is there a way to code a script, and allow, for my exemple, something like "myprog.exe -noresult" ?? Thx per advance (I'm using last Autoit version 3.2.0.1)
Moderators SmOke_N Posted October 19, 2006 Moderators Posted October 19, 2006 Look at Command Line Parameters in the help file. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
zuk Posted October 19, 2006 Author Posted October 19, 2006 Look at Command Line Parameters in the help file.Thx ! I found this...And I must admit I'm not sure to understand But, I'll try !
this-is-me Posted October 19, 2006 Posted October 19, 2006 If $cmdline[0] <> 0 Then If $cmdline[1] = "-noresult" Then ;bla bla bla EndIf EndIf Who else would I be?
zuk Posted October 20, 2006 Author Posted October 20, 2006 If $cmdline[0] <> 0 Then If $cmdline[1] = "-noresult" Then ;bla bla bla EndIf EndIf Yes it's working fine ! Thx a lot!!!
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