Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Application Error when simultaneous runs of exe

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
curo



Joined: 27 Oct 2009
Posts: 3

PostPosted: Tue Oct 27, 2009 10:30 pm    Post subject: Application Error when simultaneous runs of exe Reply with quote

I have a php that is included in the exe and referenced with the %MYFILE% variable.

The problem I am having is that when the exe is executed again while it is already being run, it gives me an application error:

Application Error
Exception EFCreateError in module cowboy.exe at 0000A771.
Cannot create file "C:\Documents and Settings\Peebody\Local Settings\Application Data\cowboy.php". The process cannot access the file because the file is being used by another process.


So what I believe is happening is that the exe is trying to extract the file into the temp folder for running, but because another instance of it is already running, It crashes and gives the above error.

What can you recommend besides "Don't run 2 at the same time." Wink
Is there a way for a batch file to check if a file already exists?
Is there a way to loop the check and execute when the file is no longer existing?
Or is there a better way of dealing with this?

Thanks.
Back to top
support
Site Admin


Joined: 13 Feb 2004
Posts: 376

PostPosted: Wed Oct 28, 2009 3:39 am    Post subject: Reply with quote

Do you have a latest version of compiler?
Back to top
curo



Joined: 27 Oct 2009
Posts: 3

PostPosted: Wed Oct 28, 2009 7:31 am    Post subject: Reply with quote

support wrote:
Do you have a latest version of compiler?


I purchased my copy no more than 3 weeks ago. I just got the upgrade to 3.2.1 today.

Will that solve the problem of it trying to extract the same file to the same place?

Thanks.
Back to top
support
Site Admin


Joined: 13 Feb 2004
Posts: 376

PostPosted: Wed Oct 28, 2009 2:57 pm    Post subject: Reply with quote

Yes, current version check APPDATA folder for extracted files and will not overwrite them.
Back to top
curo



Joined: 27 Oct 2009
Posts: 3

PostPosted: Mon Nov 02, 2009 11:54 pm    Post subject: Reply with quote

support wrote:
Yes, current version check APPDATA folder for extracted files and will not overwrite them.


Please let me know what will it now do when it encounters a file that already exists?

Will it wait and run after the first one is finished and deleted?
Will it create it in a different directory and run?
Will it just skip the running of the exe?

Thanks.
Back to top
support
Site Admin


Joined: 13 Feb 2004
Posts: 376

PostPosted: Fri Nov 20, 2009 10:59 pm    Post subject: Reply with quote

If file already exists it will not extract it again, just continues execution.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group