AutoHotkey Community

It is currently May 26th, 2012, 5:08 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: April 29th, 2008, 9:35 pm 
Offline

Joined: April 29th, 2008, 9:20 pm
Posts: 3
I have used AHK before on my desktop to launch putties.

Now I have set up a laptop instead, and I can no longer compile my AHK scripts. I get a error,

Ahk2Exe Error
----------------------------------------------
Error: Error opening the destination file.
----------------------------------------------

I also tried to compile a empty script that I made just by right clicking -> new -> autohotkey script. Same error.

I have AVG installed, and I disabled it. Still same error.

I also rebooted, and reinstalled the latest AHK. (I had previously installed the original EXE I had used successfully before). No good.

I searched for "opening the destination file" "won't compile" but I can't find any topics addressing this issue.

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 29th, 2008, 9:36 pm 
Offline

Joined: April 21st, 2008, 9:02 pm
Posts: 86
Location: somewhere
sounds like the exe is in use.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 29th, 2008, 10:44 pm 
Offline

Joined: April 29th, 2008, 9:20 pm
Posts: 3
Hrm,

I have deleted the EXEs that are corrupt (after that error message shows up) and rebooted as well. Is it possible that the EXE could be in use after a reboot? Also when I make new files from the right click menu, those get the same error, but none of those would have a corresponding EXE in existence yet.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2008, 4:35 am 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5479
Location: the tunnel(?=light)
Where are you trying to write the script to? Check the folder you're writing to to see if it has any attributes like Hidden or Read Only.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2008, 4:45 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
are you running vista? are you trying to compile inside "program files"?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 12th, 2008, 10:23 pm 
Offline

Joined: April 29th, 2008, 9:20 pm
Posts: 3
I am running WinXP home.

I tried to compile on the desktop, as well as in a folder on the desktop.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2008, 12:19 am 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5479
Location: the tunnel(?=light)
Check the properties of the Autohotkey folder in C:\Program Files and see if it is set to read only; if it is, remove that attribute. Also check the Compiler folder inside the Autohotkey folder and make sure it is not set to read only.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2008, 9:24 pm 
Offline

Joined: June 14th, 2005, 10:47 am
Posts: 28
@vctralsh, have you fixed it ?

I have the same problem since today on my laptop.
(a HP with win Xp Home),

i had installed "Compile with options" some days ago ??
oh yeah, and XP SP3 ???

btw it also happens when there is no exe in the folder.
It is created "a bit" but then after a few seconds there comes a message "Ahk2Exe Error: Error opening destiontion file"

Will try to find the solution as well....

edit:
SOLVED somewhat:

I can compile again when I disable AVGs "Resident Shield"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2008, 10:25 am 
Same Problem...

Disabling AVG Resident Sheild Solves it...

Excluding the Path that contains the AHK file also solves it.

copa_ahk wrote:
@vctralsh, have you fixed it ?

I have the same problem since today on my laptop.
(a HP with win Xp Home),

i had installed "Compile with options" some days ago ??
oh yeah, and XP SP3 ???

btw it also happens when there is no exe in the folder.
It is created "a bit" but then after a few seconds there comes a message "Ahk2Exe Error: Error opening destiontion file"

Will try to find the solution as well....

edit:
SOLVED somewhat:

I can compile again when I disable AVGs "Resident Shield"


Report this post
Top
  
Reply with quote  
 Post subject: AVG V8 resident shield
PostPosted: February 26th, 2009, 4:04 pm 
With the same problem and running AVG Version 8, I could go into the Resident shield to add an exception. The directory I chose was that where the script is being compiled to an exe.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 26th, 2009, 7:37 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
This probably happens because of UPX. Try to (temporarily) remove upx.exe from the compiler folder and see if the error persists.

Some AV software falsely regard UPX and the files compressed with it as a potential threat and block them.

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 1st, 2009, 6:34 pm 
Offline

Joined: March 1st, 2009, 6:09 pm
Posts: 1
Location: USA
I am having the same problem, also running avg.

Here is my workaround:
From the command-line:

"c:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in MyScript.ahk /out MyScript.xxx

rename MyScript.xxx MyScript.exe

This trick does not work from the GUI, since the GUI always appends .exe


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2009, 11:35 pm 
Hi, same probleme with AVG, solved by putting the script's folder in AVG exception list.


Report this post
Top
  
Reply with quote  
 Post subject: SOLVED FOR ME
PostPosted: March 18th, 2009, 7:15 pm 
I have AVG also, but didn't report anything,

Desktop was READ-ONLY... just that...

Greetings.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 24th, 2009, 9:30 am 
sinkfaze wrote:
Check the properties of the Autohotkey folder in C:\Program Files and see if it is set to read only; if it is, remove that attribute. Also check the Compiler folder inside the Autohotkey folder and make sure it is not set to read only.


Do this, it works fine....
Go to program files then to right click on autohotkey folder, then remove the "read only" and it should work fine.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Miguel, rbrtryn and 69 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group