Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy newer Exe over running Exe
Message
 
To
17/09/2008 06:23:32
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01348141
Message ID:
01348177
Views:
19
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'
Previous
Reply
Map
View

Click here to load this message in the networking platform