Jump to content

How do I run AutoIt programs from the command line?


qseft
 Share

Recommended Posts

    I am very new to AutoIt and wanted to know how to run programs from the command line. 

I tried entering "autoit3" and "autoit3.exe" followed by the full program path but neither worked

and the error message I got:

autoit3 : The term 'autoit3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 
and try again.
At line:1 char:1
+ autoit3 "c:\Users\Person\Desktop\AutoIt V3\progr ...
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (autoit3:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

 

I also tried adding the file path of the compiler to the PATH, but that didn't work.  I also skimmed some FAQs for this but I didn't see any (probably because this is a stupid question, but sorry if I'm wrong).  Thanks.

Link to comment
Share on other sites

Your problem has nothing to do with AutoIt.

You are obviously using a PowerShell console.  The PATH variable is recognized by the Command console.  Did you try executing your command line in a command console?

Edited by TheXman
Link to comment
Share on other sites

At a command prompt, use absolute paths and see if it works.  For example:

C:\> "C:\Program Files\AutoIt3\autoit3.exe" <path to your au3 file>

Edited by TheXman
Link to comment
Share on other sites

You're welcome!

You must not have correctly added the path to the environment variable or maybe you didn't close and reopen the command console after making your change.

Edited by TheXman
Link to comment
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
 Share

  • Recently Browsing   0 members

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