The information in this article applies to:
SUMMARYThis article describes how to automatically replace a file that is in use by Windows 95 without booting to MS-DOS mode. MORE INFORMATIONYou can replace files in use by Windows 95 by using an .inf file. The following sample .inf file demonstrates this method:
This sample file assumes that a file named Old.exe is located in the
Windows folder and is currently running. When you run the .inf file, the
following actions occur:
The New.exe file is copied to the C:\Windows\System folder. This location is specified in the [DestinationDirs] section of the .inf file. In addition to being copied, the file is renamed to Tempfile.exe. This temporary name is specified in the [NewFile.copy.sys] section of the .inf file. The computer must be rebooted for the changes to take effect. During the boot process, the temporary file is renamed from the temporary name to the appropriate name on the hard disk before the original file is loaded and locked open. This functionality is defined in the [rename] section of the Wininit.ini file. Once the file rename has occurred, the Wininit.ini file is renamed to Wininit.bak so you can see the last action that took place with the Wininit.ini file. To process an .inf file, you can either right-click the file and then click Install, or use the following command:
This line should be typed as a single line. It has been wrapped in this
article for readability purposes. When you run this command, you are
prompted to restart the computer.
REFERENCES
For additional information about .inf files and their parameters, see
Appendix C in the Microsoft Windows 95 Resource Kit.
Q140570 HOWTO: Moving Files That Are Currently in Use
Keywords : win95 winshell |
Last Reviewed: May 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |