| View previous topic :: View next topic |
| Author |
Message |
vctralsh
Joined: 29 Apr 2008 Posts: 3
|
Posted: Tue Apr 29, 2008 8:35 pm Post subject: Error: Error opening the destination file |
|
|
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 |
|
 |
SomeGuy
Joined: 21 Apr 2008 Posts: 86 Location: somewhere
|
Posted: Tue Apr 29, 2008 8:36 pm Post subject: |
|
|
| sounds like the exe is in use. |
|
| Back to top |
|
 |
vctralsh
Joined: 29 Apr 2008 Posts: 3
|
Posted: Tue Apr 29, 2008 9:44 pm Post subject: |
|
|
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 |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 5044 Location: the tunnel(?=light)
|
Posted: Wed Apr 30, 2008 3:35 am Post subject: |
|
|
| 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 |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Wed Apr 30, 2008 3:45 pm Post subject: |
|
|
are you running vista? are you trying to compile inside "program files"? _________________
(Common Answers) |
|
| Back to top |
|
 |
vctralsh
Joined: 29 Apr 2008 Posts: 3
|
Posted: Mon May 12, 2008 9:23 pm Post subject: |
|
|
I am running WinXP home.
I tried to compile on the desktop, as well as in a folder on the desktop. |
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 5044 Location: the tunnel(?=light)
|
Posted: Mon May 12, 2008 11:19 pm Post subject: |
|
|
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 |
|
 |
copa_ahk
Joined: 14 Jun 2005 Posts: 28
|
Posted: Fri May 23, 2008 8:24 pm Post subject: |
|
|
@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 |
|
 |
Guest
|
Posted: Thu Jul 17, 2008 9:25 am Post subject: |
|
|
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
|
Posted: Thu Feb 26, 2009 3:04 pm Post subject: AVG V8 resident shield |
|
|
| 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
|
Posted: Thu Feb 26, 2009 6:37 pm Post subject: |
|
|
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 |
|
 |
AndyDenn
Joined: 01 Mar 2009 Posts: 1 Location: USA
|
Posted: Sun Mar 01, 2009 5:34 pm Post subject: Work around by renaming destination |
|
|
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 |
|
 |
Shassi Guest
|
Posted: Tue Mar 10, 2009 10:35 pm Post subject: |
|
|
| Hi, same probleme with AVG, solved by putting the script's folder in AVG exception list. |
|
| Back to top |
|
 |
Fred Guest
|
Posted: Wed Mar 18, 2009 6:15 pm Post subject: SOLVED FOR ME |
|
|
I have AVG also, but didn't report anything,
Desktop was READ-ONLY... just that...
Greetings. |
|
| Back to top |
|
 |
killerstorm2 Guest
|
Posted: Fri Jul 24, 2009 8:30 am Post subject: |
|
|
| 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 |
|
 |
|