XP invincible command Replace file in use

  

XP has a very invincible command to replace the replacement of the file, even the file being used can be replaced, very invincible. For example: create a directory c:\\abc under C:, then copy an MP3 to c:\\abc and name it aaaa.mp3, then copy another song to C:\\a.mp3, then use media player Play aaaa.mp3 and type: replace c:\\a.mp3 c:\\abc at the command prompt. After a while, the song that has been played has become another.

It's a shame to replace the system files with this command, and XP's system file protection is not valid for it. No more safe mode to replace the file.

Format

REPLACE [drive1:][path1]filename [drive2:][path2] [/A] [/P] [/W]

REPLACE [drive1 :][path1]filename [drive2:][path2] [/P] [/S] [/W]

[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