Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win7 使用 CMD del 指令刪除檔案完整教學 (單一/多檔/遞迴/確認提示)

編輯:關於 Windows

Win7 CMD del 指令刪除檔案完整用法教學

開啟 CMD

開始 → 搜尋 cmd → cmd.exe。

常用指令範例

用途指令說明
刪除單一指定檔案del E:\A\1\abc.txt刪除 E:\A\1\abc.txt
刪除單一檔案並確認提示del /p E:\A\1\abc.txt顯示「要刪除嗎?(Y/N)」,輸入 Y 確認
刪除所有子目錄下同名檔案del /s E:\abc.txt遞迴刪除 E: 下所有 abc.txt
遞迴刪除並確認提示del /p /s E:\abc.txt結合 /p 與 /s 參數

查詢指令用法

指令後加 /? (如 del /?) 顯示完整參數說明。

Copyright © Windows教程網 All Rights Reserved