erase
- help erase
Output:
ファイル (複数可) を削除します。
DEL [/P] [/F] [/S] [/Q] [/A[[:]属性]] 名前
ERASE [/P] [/F] [/S] [/Q] [/A[[:]属性]] 名前
名前 ファイルまたはディレクトリ (複数可) の一覧を指定します。
複数のファイルを削除するときはワイルドカードを使用できます。
ディレクトリを指定した場合、ディレクトリ内のすべての
ファイルが削除されます。
/P 各ファイルを削除する前に確認のメッセージを表示します。
/F 読み取り専用ファイルを強制的に削除します。
/S 指定したファイルをすべてのサブディレクトリから削除します。
/Q ワイルドカードを使用して一括削除するときに確認のメッセージを表示しません。(Quiet モード)
/A 属性により削除するファイルを選択します。
属性 R 読み取り専用 S システム ファイル
H 隠しファイル A アーカイブ
I 非インデックス対象ファイル L 再解析ポイント
O オフライン ファイル - その属性以外
コマンド拡張機能を有効にすると、DEL と ERASE は次のように変更されます:
/S スイッチの表示形式が逆になり、見つからなかったファイルではなく
削除されたファイルだけが表示されるようになります。
Deletes one or more files.
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directory
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for archiving
I Not content indexed Files L Reparse Points
O Offline files - Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
Return Code: 1