qseft Posted November 5, 2019 Share Posted November 5, 2019 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 More sharing options...
TheXman Posted November 5, 2019 Share Posted November 5, 2019 (edited) 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 November 5, 2019 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
qseft Posted November 5, 2019 Author Share Posted November 5, 2019 I first used a PowerShell console but then I tried the windows command console (because I thought they were the same) and it still does not recognize it. Link to comment Share on other sites More sharing options...
TheXman Posted November 5, 2019 Share Posted November 5, 2019 (edited) 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 November 5, 2019 by TheXman qseft 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
qseft Posted November 5, 2019 Author Share Posted November 5, 2019 Thanks, it worked. But why didn't it work when I added a system variable for it? Link to comment Share on other sites More sharing options...
TheXman Posted November 5, 2019 Share Posted November 5, 2019 (edited) 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 November 5, 2019 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
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