Sign in to follow this  
Followers 0
typeleven

Run a script from the command line

3 posts in this topic

how would I write a bat file to tell autoit to execute a script?

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 Posted Image

Start "%ProgramFiles%\AutoIt3\AutoIt3.exe /AutoIt3ExecuteScript" "C:\AutoIt Script.au3"

Edit : Works without /AutoIt3ExecuteScript arg, too

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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