How to remove hidden directories

  • Thread starter Thread starter Rob van Albada
  • Start date Start date
R

Rob van Albada

Hi,

I have the following problem:

I have a directory C:\BU08\USER with some thrash which I put there by
mistake, using Robocopy.
They are some nested and empty directories which are hidden, and all
have the name "Application Data".
So I have C:\BU08\USER\Application Data\Application data\Application
Data\Application Data[..]\Application Data

All hidden, and I CANNOT make them visible even when 'Show hidden maps
and files' is checked (which it always is). (I'm talking about Windows
Explorer.)

Under CLI the attrib command does nothing.

How do I get rid of this rubbish?

I already tried deleting the C:\BU08\USER directory but only the files
which I want are erased and the rubbish remains!
The system indicates that the path is too long...

Thanks for any help,

Kind regards,

Rob.
 
I already solved the problem after finding out that the nested
directories were not only h(idden) but also s(ystem).

Repeating these commands:

attrib -s -h "Application Data"
ren "Application Data" AD

shortened the path so I could see on screen what I was doing.

After this I repeated:

rd /q /s AD
cd ..

which got rid of all the nested and superfluous directories.

Of course I made (gratefully) use of F8 which saved me some typing.
The directories had been nested 38 deep!

If anyone can point me to a shorter or more efficient method please
let me know.

Kind regards,

Rob.
 
Back
Top