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.
Bookmarks