How to remove hidden directories

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.
 
R

Rob van Albada

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top