Hi Charles,
I didn't expect a reply, but thanks for affirming that I'm not the only one who still loves the power of TCC in 2021! :)
And... I am more mature than you might gather from my nickname... not much... but ;)
del /s/e/x/y /nest THISISJUSTAPLACEHOLDER.NOTAREALFILENAME
I didn't mention one of the reasons I loved the above version is it gives very nice clean output of what directories have been removed.
Run this for a sample, anyplace on your drive. First two commands create a mess of empty directories.
md ThisIsATest\Some Directories have Spaces\But this Shouldn't matter\Ohhh a quoted directory name!\and other nonsense
md "ThisIsATest\Some Directories have Spaces\But this Shouldn't matter\Ohhh a quoted directory name!\and other nonsense"
del /s/e/x/y /nest THISISJUSTAPLACEHOLDER.NOTAREALFILENAME
This is what the output looks like:
Removing E:\a\
Removing E:\Directories\
Removing E:\directory\
Removing E:\have\
Removing E:\matter\Ohhh\
Removing E:\matter\
Removing E:\name!\and\
Removing E:\name!\
Removing E:\nonsense\
Removing E:\other\
Removing E:\quoted\
Removing E:\Shouldn't\
Removing E:\Spaces\But\
Removing E:\Spaces\
Removing E:\this\
Removing E:\ThisIsATest\Some\
Removing E:\ThisIsATest\Some Directories have Spaces\But this Shouldn't matter\Ohhh a quoted directory name!\and other nonsense\
Removing E:\ThisIsATest\Some Directories have Spaces\But this Shouldn't matter\Ohhh a quoted directory name!\
Removing E:\ThisIsATest\Some Directories have Spaces\But this Shouldn't matter\
Removing E:\ThisIsATest\Some Directories have Spaces\
Removing E:\ThisIsATest\
So nice and easy!
Try doing that with a CMD prompt!