03-20-2018 10:41 AM
I'm looking for a way to only delete folders (and sub folders) which do not contain any files.
For example let's say that c:\2013 (and all of its underlying folders and files) do not contain any files, just folders, how can I get rid of c:\2013 as a whole ? c:\2012 and c:\2014 should remain just like they are.
Situation before deleting empty folders
Situation after deleting folders
03-20-2018 10:56 AM
Do have to do this with sas? See Maxim 14 in Maxims of Maximally Efficient SAS Programmers.
I am sure that a powershell script exists to clean up empty folders.