微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

删除空文件夹和文件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/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐