Jump to content

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


Recommended Posts

 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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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,
 

Link to comment
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 ?

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...