Replace File Utility
replace
- C:\Windows\system32\replace.exe /?
Output:
Replaces files.
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 or files.
[drive2:][path2] Specifies the directory where files are to be
replaced.
/A Adds new files to destination directory. Cannot
use with /S or /U switches.
/P Prompts for confirmation before replacing a file or
adding a source file.
/R Replaces read-only files as well as unprotected
files.
/S Replaces files in all subdirectories of the
destination directory. Cannot use with the /A
switch.
/W Waits for you to insert a disk before beginning.
/U Replaces (updates) only files that are older than
source files. Cannot use with the /A switch.
Return Code: 0
C:\Windows\system32\replace.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 22528bytes |
| Creation Time | 2022/07/08 08:48:47 |
| LastWrite Time | 2022/07/08 08:48:47 |
| ProductVersion | 10.0.19041.1 |
| FileVersion | 10.0.19041.1 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | 685e423981111df5dd45a254dd1a9007 |
| SHA1 | 7cd550b8165c7c7518ca22b0782dc8369cc606d0 |
| SHA224 | baca21922c97b2719635312442d416a91651deaf3e92a46dc84c4be7 |
| SHA256 | bcfa463cf0785a9435c719857973997ec49f212b909cbec62e347d752d706afc |
| SHA384 | c076bfa0786a475a76a0a6c61f7fbfcc5b67b9520a8fc73a045851fa166de348fc65337ef6da980db8097fe9ea7f7968 |
| SHA512 | e1517087f18d89e005433d6a03b036e9eae2444ee905eb0ae9cf53e72a20e4e234acaabbe6cb24f7ee7068b57b12c08b24e84569c29f271280f6ff24658965e2 |