DrAhmed

[Solved] Error opening the file when compiling script by command line

11 posts in this topic

#1 ·  Posted (edited)

 Hi all

I am trying to make a compiler for au3 scripts in vb.net , I am using  this command line in the vb.net code

"Aut2exe.exe /in EW.au3"

The error I get : 

EFG2zLT.jpg

EW.au3 is the script name and Aut2exe.exe  is in the same floder with the script .

After reading this, I think that this is the only way to do it : (the command line method)

https://www.autoitscript.com/autoit3/docs/intro/compiler.htm

Note that compiling the script manually ( right click  --> compile ) works fine .

I already tried to (didn't help)

- Replacing < > by " "

- Turning my AV off

- Giving Aut2exe.exe / vb.net compiler admin rights

- Replace Aut2exe.exe  with its full path from original Aut3 floder.

 

I don't know what I am doing wrong ?

 

Edited by DrAhmed

Share this post


Link to post
Share on other sites



Try to put your script in the folder "C:\Program Files (x86)\AutoIt3\Include" and run Aut2exe.exe with Admin rights.


Regards,
 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

11 minutes ago, VIP said:

Try to put your script in the folder "C:\Program Files (x86)\AutoIt3\Include" and run Aut2exe.exe with Admin rights.

Well that's wierd I tried what you said and  got this , I got no compiled exe file

vUwWTjf.png

 the command line I used is :

"Aut2exe.exe /in <C:\Program Files (x86)\AutoIt3\Include\EW.au3> /out <C:\Program Files (x86)\AutoIt3\Include\EW.exe>"

 

Edited by DrAhmed

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try: 

""Aut2exe.exe" /in "C:\Program Files (x86)\AutoIt3\Include\EW.au3" /out "C:\Program Files (x86)\AutoIt3\Include\EW.exe""

 

Edited by VIP

Regards,
 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

20 minutes ago, VIP said:

Try: 

"Aut2exe.exe /in " + "C:\Program Files (x86)\AutoIt3\Include\EW.au3" + " /out " + "C:\Program Files (x86)\AutoIt3\Include\EW.exe"

OR:

'"C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe" /in "C:\Program Files (x86)\AutoIt3\Include\EW.au3" /out "C:\Program Files (x86)\AutoIt3\Include\EW.exe"'

 

for the first one I got the same message above :

vUwWTjf.png

for the second I got error in my vb.net compiler :

pLpUvRo.png

more info about error in visual studio debugger :

rZPERXC.png

Edited by DrAhmed

Share this post


Link to post
Share on other sites
Dim app As String = "C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe"
        Dim AppParam As String = "/in  ""C:\Program Files (x86)\AutoIt3\Include\EW.au3"" /out ""C:\Program Files (x86)\AutoIt3\Include\EW.exe"""
        System.Diagnostics.Process.Start(app, AppParam)

 


Regards,
 

Share this post


Link to post
Share on other sites
31 minutes ago, VIP said:

Dim app As String = "C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe"
        Dim AppParam As String = "/in  ""C:\Program Files (x86)\AutoIt3\Include\EW.au3"" /out ""C:\Program Files (x86)\AutoIt3\Include\EW.exe"""
        System.Diagnostics.Process.Start(app, AppParam)

 

Wow thanks man  it works like charm now
But what do you suggest to do this without admin rights with no Autoit installed on the computer ? is it even possible ?

Share this post


Link to post
Share on other sites

Copy all file on  "C:\Program Files (x86)\AutoIt3\Include" to your script folder!


Regards,
 

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

12 minutes ago, VIP said:

Copy all file on  "C:\Program Files (x86)\AutoIt3\Include" to your script folder!

It works fine now ... thank you very much for your help :D

Edited by DrAhmed

Share this post


Link to post
Share on other sites

good day (: keep smile


Regards,
 

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