Batch-script-del
提供:Dev Guides
バッチスクリプト-DEL
このバッチコマンドは、ディレクトリではなくファイルを削除します。
構文
del [filename]
例
次の例は、 del コマンドのさまざまなバリエーションを示しています。
@echo off
Rem Deletes the file lists.txt in C:\
del C:\lists.txt
Rem Deletes all files recursively in all nested directories
del/s *.txt
Rem Deletes all files recursively in all nested directories , but asks for the
confirmation from the user first
Del/p/s *.txt
出力
すべてのアクションは、バッチファイルの説明に従って実行されます。