windows 从命令提示符执行 AutoIt 脚本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4057045/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Executing AutoIt script from command prompt
提问by name_masked
Is there any way to execute my AutoIt script (.au3 file) from command line?
有什么方法可以从命令行执行我的 AutoIt 脚本(.au3 文件)?
回答by aphoria
You could compile your AutoIt script and run the .exe from the command line.
您可以编译 AutoIt 脚本并从命令行运行 .exe。
Or, you can run the script like this:
或者,您可以像这样运行脚本:
AutoIt3.exe myscript.au3
AutoIt3.exe myscript.au3
回答by Martlark
The default installation of autoit makes .au3 files runnable from the command line by just using
autoit 的默认安装使 .au3 文件可以从命令行运行,只需使用
c:>\script.au3
c:>\script.au3