Get the App
SLTechnology News&Howtos  ›  Servers  › 

Delete empty folders and files bat

Shulou Source: shulou.com Published: 2022-06-03 08:47:41 09月21日 Update

Open the link: www.intelliadmin.com/index.php/downloads/

Find the Delete Empty under Free Utilities

Specific parameters

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 (yzone) prompt

I use the following command to clear no specific folder and its subfolders and empty files under the disk.

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

Join the scheduled task to automatically perform checks every day

Reference document: https://www.howtogeek.com/122294/automatically-clean-out-and-remove-empty-files-and-folders/

Tags: Files folders tasks parameters commands documents links faceted references check Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei NVidia Xiaomi Docker Shulou Information