How can I tell the system to rename a file on the next reboot? (Views: 100)
How can I tell the system to rename a file on the next reboot?
Windows has a mechanism to replace files that are currently in use on next boot. So what the program could do is
save the updated version under another name, preferably in the applications directory (source and target need to be on the same volume).
the execute the following code:
if Win32Platform = VER_PLATFORM_WIN32_NT then
MOVEFILE_REPLACE_EXISTING or MOVEFILE_DELAY_UNTIL_REBOOT)
Note that the wininit.ini file needs to be set up using the short (DOS 8.3) versions of long path and filenames.
<< Back to main page