Moderators JLogan3o13 Posted November 30, 2010 Moderators Posted November 30, 2010 This is very basic, and I'm always open to suggestions for improvement. I find myself compiling a lot, with different icons for the different customers I serve. This script allows me to choose from different directories, as well as different icon files. $script = FileOpenDialog( "Select script to compile", "C:\Scripts", "All (*.*)", 4 ) $exe = InputBox( "Executable name", "What would you like the executable to be named?" ) $icon = FileOpenDialog( "Select an icon", "C:\Documents and Settings\%USERNAME%\My Documents", "Icons (*.ico)", 4 ) RunWait( '"C:\Program Files\AutoIt3\Aut2Exe\Aut2exe.exe" /in "' & $script & '" /out "C:\Documents and Settings\%USERNAME%\Desktop\' & $exe & '.exe" /icon "' & $icon & '" /comp 4', "", @SW_HIDE ) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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