How to remove windows empty subdirectories
You might have empty folders and subfolders in your Windows system that will not affect the space, per say, although it is true that it can slow down your computer a bit. With the trick, which is explained below, we will be able to remove these directories quickly and easily (even before you do this you must keep in mind that many applications work with empty folders and if we remove these, then some programs may not work).
We just need to create a script and run it when you want to remove empty subdirectories that are in your Windows.
These are the steps:
- Open Notepad, and enter the following:
Code:
for /f "usebackq" %%d in ("dir /ad/b/s | sort /R") do rd "%%d"
- Once, you have copied the code in the notepad, which is mentioned above, simply save the notepad with a .bat extension or file format.
- This way, the script is saved and now you just have to click to run it, and then it will automatically delete the empty subdirectories.
Re: How to remove windows empty subdirectories
There is also a software called Empty Folder Nuker that can find and delete all empty folders from a base folder of your choice. One advantage of this program is that it requires no installation, just double click on it and select from any drive whether it is My Documents, Desktop, etc, and just start searching. In moments it will show all the empty folders, and thus anyone can eliminate those with just one click. Empty Folder Nuker allows us to integrate it into Windows, so you just have to right click on any directory and it will search for empty folder with ease.