Archive: Rename /REBOOTOK on Win95?


Rename /REBOOTOK on Win95?
I want to install a particular DLL if it's not new enough in the system folder. Since there is no /REBOOTOK option for the "File" command I do the following:

- Use "File" to try copying over DLL directly.
- If it failed (probably because it's in use), then copy it to a temp file name in the same folder (again with "File").
- Use "Rename /REBOOTOK" to move the temp file to the right place (in the same folder).
- Later, ask user to reboot if necessary.

This works fine on Win2000, but not on Win95. On Win95, the user is still asked to reboot at the appropriate times, but the temp file is NOT copied to the right place upon reboot. Note: the install details show that it does intend to do the rename on reboot.

Is this not supported for Win95, or am I doing something wrong?

Thanks,
Rob.


Use the Library system (see Documentation). You don't have to write it yourself.