Sign in to follow this  
Followers 0
beardawg

Aut2Exe Command Line Execution

7 posts in this topic

Can someone explain to me why Aut2Exe supports command line execution, however, in the event of an error blocks as the error dialog requests user input. In a headless environment, this is VERY problematic when executing many scripts.

I have a situation where a headless process spawns several scripts to be built, however, if one returns an error, the entire process is blocked. I have searched and searched without success, is there a command line option to execute headless? Or simply generate an error log. Anything besides generating a dialog that requires a user to click an OK button.

Share this post


Link to post
Share on other sites



The only known Command Line Parameters are : Posted Image

Aut2Exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/comp 0-4] [/nopack] [/pack] [/ansi] [/unicode] [/x64] [/console] [/gui]


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

Thank you for your response, those are the only ones I have been able to find.

Here is my situation: I am using Ant to generate exe's from my AutoIt scripts using Aut2Exe and Ant exec task. The problem is that if an error is encountered, it throws up an error dialog.

Anyone running Aut2Exe using an Ant exec task? If so, how did you handle errors?

Share this post


Link to post
Share on other sites

beardwag, welcome to the AutoIt forums. 8) I say this because you can write an AutoIt script to handle the error dialog and get the output and pass it back via ConsoleWrite.

Share this post


Link to post
Share on other sites

Manadar,

The error dialog is a result of a missing resource, not execution of the script. Is this possible? The error happens when building the script, not running.

I do apologize, I am new to AutoIt, inherited the project and am trying to come up to speed.

beardwag, welcome to the AutoIt forums. 8) I say this because you can write an AutoIt script to handle the error dialog and get the output and pass it back via ConsoleWrite.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

beardawg, you could use another AutoIt script as a wrapper for Aut2Exe that assists in handling these compilation errors.

Edited by Manadar

Share this post


Link to post
Share on other sites

Thanks Manadar, I didn't think of that. I will give it a quick shot and see.

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