chris.mo...@biuk.co.uk wrote:
Sooo...... my program is ALWAYS running and I can't rename because
someone else has it open.
Can someone give me a clue?

I cannot solve your immediate problem because it really is a tough one. But I can offer a solution that has worked for many years that takes a small bit of prep work:

My strategy for this problem is to create a stub program that everyone runs (shortcuts point to it, etc.). The stub program looks in its folder for other programs with the same name but numeric suffixes. For example, MyProg.exe is the stub and MyProg_01.exe and MyProg_02.exe are two versions of the real MyProg application.

The stub looks for the highest numbered suffix and runs that program and then exits. That's all it does. It is a console program that does not talk to the user.

The user then is running the MyProg_02.exe program.

To make an update, you copy in a new MyProg_03.exe and wait for all users to restart the application. To have users update to the new version, just tell them to exit and restart the application using their normal procedure/shortcut.

Eventually everyone will be running MyProg_03.exe you are free to delete MyProg_02.exe if you want. Note that a byproduct of this scheme is that you have an immediate way of reverting to a prior version in an emergency by renaming or copying Myprog_02.exe as MyProg_04.exe and telling everyone to restart. No muss, no fuss.

For this scheme to work there is no need to change your original application (except the final name of the exe). The stub program can be used to stage many different apps if you write it to look at its name and look for similarly named exe files. Just rename it YourProg.exe and it will work with YourProg_01.exe and YourProg_02.exe, etc.

This solution works for any file server and network, regardless of version. Has been used since Windows 95 without problems.
--
Doug C.
-----
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to