欢迎光临
我们一直在努力

删除空文件夹和文件bat

  1. 打开链接: 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/

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。