New
#1
Networked File stored in local cache whereas it doesnt exist anymore.
Hi all,
Let me explain you my problem : I am a programmer (but it is not the problem ), i've a program (created in autoit) used by about a hundred users on Win 7 at my work.
My users run my program from the network : \\myserver\share\program.exe Nothing in local.
When i update my program, i replace my program.exe on the network with a new version (while it is being used by users). The name is still program.exe but it is now in version2 (versus version 1 before)
So i have overwritten my program.exe with a new program.exe, the version 1 does'nt exist anymore but users are still executing it (it was run from network). I need now to restart my program on the computers, so they execute the new version .
=> to restart, i send an order to the program, and my code do this: run the exe again (another instance), get the new PID (process id), send the actuel PID to the new process, and send an exit. The new program wait until the old process die and then goes on.
When i restart my program, the users which where executing the version1 should be now in version 2 after restart.
PROBLEM => sometimes it is the old version which is run after restart ! (the version 1), even several days after i've updated it (the version 1 does'nt exist anymore ! it is replace with the new version (same name)...)
it looks like a cache problem from local pc, on windows 7, but how to deal with it ?...
In this way, we start the program, before killing the old one. My 'cache' probleme may come from that.
(I have another idea in mind that would be to create a .bat, run it, kill my program and then start it again... but i first want to understand where is my program stored in local cache...
do you have any idea for me ? or an explanation, where is stored my program.exe which is run from network only ..
thanks !
Nicolas.