Replace the file you are using with the Replace implementation _dos/bat

Source: Internet
Author: User
Tags switches

XP has a very invincible command to replace the file replacement, and even the files you are using can be replaced. Very invincible. For example: Build a directory in C: c:\aaa, then copy a mp3 to C:AAA and name it C:\aaa\a.mp3, then copy another song to C:\a.mp3, and then play C:\aaa\a.mp3 with Media Player, At the command prompt, enter: Replace C:\a.mp3 C:\AAA, after a while, is not playing the song has become another song.

It's nice to replace the system file with this command, and XP's system File Protection does not work for it. You don't have to go to safe mode to replace the file anymore.

Format

REPLACE [Drive1:][path1]filename [drive2:][path2] [/A] [/p] [/R] [/w]

REPLACE [Drive1:][path1]filename [Drive2:][path2] [/P] [r] [/S] [/w]

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

[drive2:] [path2] Specifies the file to replace

Directory

/A Add the new file to the target directory. cannot be used with/S or/u command line switches. /P will prompt you for confirmation before you replace the file or join the source file. /R replaces read-only files and unprotected files. /S replaces files for all subdirectories in the destination directory. cannot be used with the/a command option.

/w Wait until you insert the disk before you run it.

/u replaces or updates only files that are older than the source file date. cannot be used with the/a command line switch.

PS: If the virus or hackers also use this command that is dangerous.

Copy Code code as follows:
REPLACE [Drive1:][path1]filename [drive2:][path2] [/A] [/p] [/R] [/w]
REPLACE [Drive1:][path1]filename [Drive2:][path2] [/P] [r] [/S] [/w] [/u

[drive1:] [path1]filename Specifies the source file.
[drive2:] [path2] Specifies the directory where you want to replace the file.
/A Add the new file to the target directory. cannot be opened with/S or/u command line
Off with.
/P will prompt you for confirmation before you replace the file or join the source file.
/R replaces read-only files and unprotected files.
/S replaces files for all subdirectories in the destination directory. Cannot with/a command
Switch to use.
/w Wait until you insert the disk before you run it.
/u replaces or updates only files that are older than the source file date. cannot be associated with/a
Command line switches are used in combination.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.