Sign in to follow this  
Followers 0
autosc

running command line from autoit + Error handling

2 posts in this topic

my autoi exe from command line :

myexe.exe /mycalc first second third

How can i return @error , if the user enters more than four parameters ? does RunErrorsFatal helps ?

what is the best way to run , command line exe, from Autoit ? Run , _Rundos , ???

Share this post


Link to post
Share on other sites



The question is are you testing for if the AutoIT program can accept maximum 4 paramers ?

Then this should work

If $CmdLine[0] > 4 Then
   Exit (9)
EndIf

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