Personally I use a loader which looks at a version number embedded in the file name to determine the latest version.
I use to use another technique that is closer to what you describe.
In your exe, you have it check the server for a later version.
If one is found, create a batch file that has the copy command required and then the command to run your exe.
before quitting your program, run the bat file
The Bat file should have a small delay at the start to allow the exe to be cleared.
Bob
>I want to add the option to my users of downloading a newer version of my program and over writing the current version with the new one but windows won't allow me to copy over a program while it is running.
>The idea is for the program to check for updates, download the update and then copy it over the older version.
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'