AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error: Error opening the destination file
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
vctralsh



Joined: 29 Apr 2008
Posts: 3

PostPosted: Tue Apr 29, 2008 8:35 pm    Post subject: Error: Error opening the destination file Reply with quote

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!
Back to top
View user's profile Send private message
SomeGuy



Joined: 21 Apr 2008
Posts: 86
Location: somewhere

PostPosted: Tue Apr 29, 2008 8:36 pm    Post subject: Reply with quote

sounds like the exe is in use.
Back to top
View user's profile Send private message
vctralsh



Joined: 29 Apr 2008
Posts: 3

PostPosted: Tue Apr 29, 2008 9:44 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 5044
Location: the tunnel(?=light)

PostPosted: Wed Apr 30, 2008 3:35 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Wed Apr 30, 2008 3:45 pm    Post subject: Reply with quote

are you running vista? are you trying to compile inside "program files"?
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
vctralsh



Joined: 29 Apr 2008
Posts: 3

PostPosted: Mon May 12, 2008 9:23 pm    Post subject: Reply with quote

I am running WinXP home.

I tried to compile on the desktop, as well as in a folder on the desktop.
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 5044
Location: the tunnel(?=light)

PostPosted: Mon May 12, 2008 11:19 pm    Post subject: Reply with quote

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.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message Send e-mail
copa_ahk



Joined: 14 Jun 2005
Posts: 28

PostPosted: Fri May 23, 2008 8:24 pm    Post subject: Reply with quote

@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"
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Jul 17, 2008 9:25 am    Post subject: Reply with quote

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"
Back to top
Gadget
Guest





PostPosted: Thu Feb 26, 2009 3:04 pm    Post subject: AVG V8 resident shield Reply with quote

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.
Back to top
Drugwash



Joined: 07 Sep 2008
Posts: 921
Location: Ploiesti, RO

PostPosted: Thu Feb 26, 2009 6:37 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
AndyDenn



Joined: 01 Mar 2009
Posts: 1
Location: USA

PostPosted: Sun Mar 01, 2009 5:34 pm    Post subject: Work around by renaming destination Reply with quote

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
Back to top
View user's profile Send private message
Shassi
Guest





PostPosted: Tue Mar 10, 2009 10:35 pm    Post subject: Reply with quote

Hi, same probleme with AVG, solved by putting the script's folder in AVG exception list.
Back to top
Fred
Guest





PostPosted: Wed Mar 18, 2009 6:15 pm    Post subject: SOLVED FOR ME Reply with quote

I have AVG also, but didn't report anything,

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

Greetings.
Back to top
killerstorm2
Guest





PostPosted: Fri Jul 24, 2009 8:30 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group