刪除空文件夾和文件bat

  1. 打開鏈接: www.intelliadmin.com/index.php/downloads/
    找到Free Utilities下面的Delete Empty

刪除空文件夾和文件bat

具體參數

DelEmpty.exe OPTIONS [PATH]

The following OPTIONS are available for use in the command:
-f delete files of size zero
-d delete empty directories
-v verbose mode
-c confirm mode (Shows what was deleted)
-s include sub-directories
-l list what would be deleted (lowercase L – does not actually delete the empty folders or empty files)
-y delete without (y/n) prompt

我使用如下命令清除盤下沒個具體的文件夾及其子文件夾和空文件

F:\>DelEmpty.exe -d -s -f -c -y e:\Vis

加入計劃任務使其每天自動執行檢查

參考文檔:https://www.howtogeek.com/122294/automatically-clean-out-and-remove-empty-files-and-folders/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章