it removes empty folders for me further down the path as long as the folder that was set to be removed has a file in it. If the folder that is set to be removed DOES NOT have a file in it then the whole operation will fail regardless of file depth. The KEY to it working or not is if the folder set to be removed has any files in it or not.
RD "C:\TEMP\TEST\John" /s And the folder is like this below... If Data or Folders or Finance is blank or has files doesn't matter. If the folder John has at least a single file it in the whole structure will be removed. If John has no files and the other folders do have files the whole operation will fail.
C:\TEMP\TEST\John\Data\Folders\Finance
No, Ruud did not respond yet that I'm aware of, but he doesn't always respond. Often he just fixes it and tells us about it.
Edited by NTDOC (2006-01-18 08:05 AM)
|