ファイルの置換ユーティリティ
replace
- C:\Windows\system32\replace.exe /?
Output:
ファイルを置き換えます (更新)。
REPLACE [ドライブ1:][パス1]ファイル名 [ドライブ2:][パス2] [/A] [/P] [/R] [/W]
REPLACE [ドライブ1:][パス1]ファイル名 [ドライブ2:][パス2] [/P] [/R] [/S] [/W]
[/U]
[ドライブ1:][パス1]ファイル名
置き換える送り側ファイル (複数可) を指定します。
[ドライブ2:][パス2] 置き換えられるファイルのある受け側のディレクトリを
指定します。
/A 新しいファイルを受け側のディレクトリに追加します。
/S または /U とは同時に使用できません。
/P ファイルの置き換えや追加をする前に確認するための
プロンプトを表示します。
/R 読み取り専用のファイルも置き換えます。
/S 受け側ディレクトリのすべてのサブディレクトリの
ファイルを置き換えます。
/A と同時には使用できません。
/W 始める前にディスクの挿入を待ちます。
/U 送り側ファイルよりも古いファイルのみを
置き換え (更新) ます。
/A と同時には使用できません。
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:50:26 |
| LastWrite Time | 2022/07/08 08:50:26 |
| ProductVersion | 10.0.19041.1889 |
| FileVersion | 10.0.19041.1889 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | 685e423981111df5dd45a254dd1a9007 |
| SHA1 | 7cd550b8165c7c7518ca22b0782dc8369cc606d0 |
| SHA224 | baca21922c97b2719635312442d416a91651deaf3e92a46dc84c4be7 |
| SHA256 | bcfa463cf0785a9435c719857973997ec49f212b909cbec62e347d752d706afc |
| SHA384 | c076bfa0786a475a76a0a6c61f7fbfcc5b67b9520a8fc73a045851fa166de348fc65337ef6da980db8097fe9ea7f7968 |
| SHA512 | e1517087f18d89e005433d6a03b036e9eae2444ee905eb0ae9cf53e72a20e4e234acaabbe6cb24f7ee7068b57b12c08b24e84569c29f271280f6ff24658965e2 |