This is a copy of the "inuse_d.htm" page that comes in the "inuse.exe" distribution file for version 1.4; with a few added comments of my own!
InUse is a command-line tool that performs on-the-fly replacement of files currently in use by the operating system [don't think for one sec. this means 'without shutting down your box'; afterall this is a Windows OS, not some Linux server! *]. You must be a member of the Administrators group to use this tool.
InUse is primarily used to replace locked operating system files. After running the tool, *the file specified is not replaced until the system is restarted. During restart, the system moves the file immediately after AUTOCHK is run, but before creating any paging files. This tool is useful for troubleshooting purposes, where you might need to replace an individual file on your computer instead of an entire set of files [ what they don't say here though, is that there are MANY System files that this utility can NOT be used to replace! ( Or doesn't the dept. in charge of writing these files know that? ) For example, if you try replacing the system file EXPLORER.EXE using InUse, the program will BEEP at you and immediately display the following text:
InUse - version 1.4 ---------------------------------------------------------------------------- Copyright (c) 1994-1999 Microsoft Corporation. All rights reserved Windows 2000 detected - WFP is enforced C:\WINNT\explorer.exe is protected by WFPrather than carry out your command! Conclusion: You cannot use this utility to replace ANY System Files that are under the Windows File Protection !!! (WFP)
File Required:
InUse Topics
inuse [-?] source destination [/y]
Where:
C:\>inuse \\IMACOMPUTERNAME\winnt\test.dll e:\winnt\test.dll
InUse - version 1.4
----------------------------------------------------------------------------
Copyright (c) 1994-1999 Microsoft Corporation. All rights reserved
Windows 2000 detected - WFP is enforced
INUSE is about to replace the following file
Existing: e:\winnt\test.dll
1.4
Replacement: \\IMACOMPUTERNAME\winnt\test.dll
1.4
Do you want to continue?(y/n) y
\\IMACOMPUTERNAME\winnt\test.dll is replacing --> e:\winnt\test.dll
Changes will not take affect until you reboot.
batch.cmd
@echo off
inuse test.dll c:\winnt\system32\test.dll /y
inuse test2.dll c:\winnt\system32\test2.dll /y
inuse test3.dll c:\winnt\system32\test3.dll /y
shutdown /l /r /y
How To Change Windows 2000 System Files (when using NTFS)