Although I can use alt+shift+enter to show the size of my folders, I fail to sort the folders according to the size.
How can I delete empty folders in a batch?
Thanks in advance!
[REQ]How can I delete empty folders in a batch?
Moderators: white, Hacker, petermad, Stefan2
Hello enineera,
not the wanted solution, but probably it helps anyway:
If you set the option
Configuration > Layout: Display > Sorting directories: Like files (also by time)
(instead of the option "Always by name"), then it's possible to sort directories by size (<Alt><Shift><Enter> to calculate the occupied space is still necessary)
EDIT:
Calculting the space can take a while... if you like to identify empty folders and 0-byte-folders, I recommend the content plugins
DirSizeCalc
fields:
<Empty>: Retrieves if a directory neither subdirectories nor files
<Contains files>: Retrieves if a directory contains any files
<Contains subdirectories>: Retrieves if a directory contains subdirectories
and / or
FileX
fields:
<EmptyDir>
<ZeroSizeDir>
not the wanted solution, but probably it helps anyway:
If you set the option
Configuration > Layout: Display > Sorting directories: Like files (also by time)
(instead of the option "Always by name"), then it's possible to sort directories by size (<Alt><Shift><Enter> to calculate the occupied space is still necessary)
EDIT:
Calculting the space can take a while... if you like to identify empty folders and 0-byte-folders, I recommend the content plugins
DirSizeCalc
fields:
<Empty>: Retrieves if a directory neither subdirectories nor files
<Contains files>: Retrieves if a directory contains any files
<Contains subdirectories>: Retrieves if a directory contains subdirectories
and / or
FileX
fields:
<EmptyDir>
<ZeroSizeDir>
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Re: [REQ]How can I delete empty folders in a batch?
I use XXcopy http://www.xxcopy.com/index.htm#download for that task. Batch file isenineera wrote:How can I delete empty folders in a batch?
Code: Select all
xxcopy.exe %1 /rmdir /x*.* /yy
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
Have you tried to use DelEmpty tool?