Try XP's invincible replacement command

  
. Under Windows operating system, we sometimes delete some useless files, but suddenly a warning box pops up to tell us that the file is being called and cannot be deleted. What should we do? Actually only A little trick is needed and the problem is solved perfectly. Let's take a look at how the author replaces the file in use with replace.

For example: create a directory under C:, c:aaa

Then copy an mp3 to c:aaa and name it c:aaaa.mp3

Then copy another Song to C:a.mp3

Then use media player to play c:aaaa.mp3

At the command prompt, type: replace c:a.mp3 c:aaa

After a while, is the song that has been played has become another.

It's great to replace system files with this command, and XP's system file protection is not valid for it.

Never use safe mode to replace files.

Format

REPLACE [drive1:][path1]filename [drive2:][path2] [/A] [ ,null,null,3],/P] [/R] [/W]

REPLACE [drive1:][path1]filename [drive2:][path2] [/P] [/R] [/S] [/W] < Br>

[drive1:][path1]filename Specifies the source file.

[drive2:][path2] Specifies the directory where you want to replace the file.

/A Add new files to the target directory. Cannot be used with the /S or /U command line switches.

/P Prompts you to confirm before replacing a file or adding a source file.

/R Replaces read-only files and unprotected files.

/S Replaces files in all subdirectories in the target directory. Cannot be used with the /A command option.

/W Wait until you insert the disk and run it again.

/U will only replace or update files that are older than the source file date. Cannot be used with the /A command line switch.

Copyright © Windows knowledge All Rights Reserved