Sign in to follow this  
Followers 0
zuk

"autoitprog.exe -option" possible ?

5 posts in this topic

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 :lmao:

(I'm using last Autoit version 3.2.0.1)

Share this post


Link to post
Share on other sites



Look at Command Line Parameters in the help file.


[center]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.[/center]

Share this post


Link to post
Share on other sites

Look at Command Line Parameters in the help file.

Thx ! I found this...

And I must admit I'm not sure to understand :lmao:

But, I'll try !

Share this post


Link to post
Share on other sites

If $cmdline[0] <> 0 Then
    If $cmdline[1] = "-noresult" Then
        ;bla bla bla
    EndIf
EndIf


Who else would I be?

Share this post


Link to post
Share on other sites

If $cmdline[0] <> 0 Then
    If $cmdline[1] = "-noresult" Then
        ;bla bla bla
    EndIf
EndIf
Yes it's working fine ! :lmao:

Thx a lot!!!

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