Timeline for Recursively delete empty directories in Windows
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 7, 2022 at 1:22 | comment | added | ChaosFreak | This does not work for me when I have nested empty folders. I think it starts at the top of the hierarchy, so the folders aren't empty. You could just run it repeatedly until it gets them all, though. | |
Mar 10, 2021 at 22:21 | comment | added | Brian |
Thanks. Found that this only applies to commandline not batchfiles. According to superuser.com/questions/444474/… by Dennis, if we want to use this in a batchfile it should be for /f "delims=" %%i in ('dir /s /b /ad ^| sort /r') do rd "%%i" . The for behaviour is slightly different between commandline and batchfiles.
|
|
Sep 2, 2018 at 23:41 | history | answered | Daniel Mošmondor | CC BY-SA 4.0 |