Jump to content

Recommended Posts

Posted

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 , ???

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...