Replacing 'in-use' files

This short script will replace files (such as .dll's) that are in use.

To replace files (such as .dll's) that are in use, use the "inuse" command at the command-line.

Note: Before using this command, make a backup of the file you are replacing.

The syntax of the command is:
inuse Replacement Destination
Simply type:
C:> inuse c:TestFile.dll c:windowssystem32TestFile.dll

This command can also be used to grab remote files:

C:> inuse servernameshareTestFile.dll c:windowssystem32TestFile.dll

Use the '/y' switch to suppress the confirmation prompt.

On the next re-boot the file will be replaced.

This was last published in April 2003

Dig Deeper on LANs (Local Area Networks)

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close