- 打开链接: www.intelliadmin.com/index.php/downloads/
找到Free Utilities下面的Delete Empty
具体参数
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/
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/183623.html