typeleven Posted January 2, 2011 Share Posted January 2, 2011 how would I write a bat file to tell autoit to execute a script? Link to comment Share on other sites More sharing options...
Developers Jos Posted January 2, 2011 Developers Share Posted January 2, 2011 how would I write a bat file to tell autoit to execute a script?Compile the script to EXE and execute that or else just run Autoit3.exe with as parameter your script:"C:\Program Files\AutoIt3\autoit3.exe" "C:\path-to-scriptfile\script.au3" Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wakillon Posted January 3, 2011 Share Posted January 3, 2011 (edited) how would I write a bat file to tell autoit to execute a script? If you read help file you should find : AutoIt specific command Line Switches Form1: AutoIt3.exe [/ErrorStdOut] [/AutoIt3ExecuteScript] file [params ...] Execute an AutoIt3 Script File So your bat should be like this Start "%ProgramFiles%\AutoIt3\AutoIt3.exe /AutoIt3ExecuteScript" "C:\AutoIt Script.au3" Edit : Works without /AutoIt3ExecuteScript arg, too Edited January 3, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts 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