Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overwriting active .EXE
Message
From
21/06/1997 13:05:48
Primoz Pisk
Impulz D.O.O. Kranj
Kranj, Slovenia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Overwriting active .EXE
Miscellaneous
Thread ID:
00037317
Message ID:
00037317
Views:
83
I'd like to add a self-upgrapdable option into my FoxPro application. It means there would be a menu item inside application like "Upgrade to a new version" and when my user get - for example - a diskette with MYAPP.EXE, the active program simply copy this file from diskette onto active program location, located with SYS(16,0) function.

Some compilers load the EXE program into memory, so overwriting the active program isn't problem at all; the user just have to restart the application and that's all. In FoxPro it's not so simple, because the EXE program is a kind of locked file - renaming, deleting and overwriting isn't possible until we quit the application.

I know I could make a special EXE program for making upgrades, but let's say I don't like it. I know I could run my program within some .BAT file (in DOS environment) and after the application stopped, there could be another .BAT file, handled by MYAPP.EXE. I don't like this solution either, specially for Windows version and Visual FoxPro environment.

So - is there an idea how to delete, rename or overwrite the active FoxPro program.

Thanks,
Primoz.
Next
Reply
Map
View

Click here to load this message in the networking platform