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."
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.
Application Error when simultaneous runs of exe
Please let me know what will it now do when it encounters a file that already exists?support wrote:Yes, current version check APPDATA folder for extracted files and will not overwrite them.
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.