Sign in to follow this  
Followers 0
Shinies

Compiling through script

6 posts in this topic

Hey, ive searched the forums for a bit and couldnt find anything usefull on compiling a script manually through another script. Is this possible? Basically what i want is to turn a .au3 into a .exe by running another script.

Share this post


Link to post
Share on other sites



I dont know if you can compile scripts via a CMD promt window, but if you can then yes... Just execute the command. And again, I dont know how to do that, but start off by looking to see if you can compile a script using CMD prompt.

Share this post


Link to post
Share on other sites

Is this what you want to do (from the help file)?

Compiling Scripts with Aut2Exe

Method 3 - The Command Line

The Aut2Exe.exe program can be run from the command line as follows:

Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/nodecompile] [/comp 0-4] [/pass <passphrase>]

Long filenames should be enclosed in double-quotes like "C:\Program Files\Test\test.au3". If no "out" file is given the input filename is used with a .exe extension.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Would you enter that code into a cmd prompt, or in the actual source code?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Sorta like this in your script:

$FileToCompile = 'Script.au3'
RunWait("Aut2exe.exe /in " & $FileToCompile)
Edited by Stumpii

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Ohhh, is see, thanks alot, this is very helpful:)

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