delete hidden folders in a directory

December 19, 2011 at 05:38:00
Specs: Windows XP
i want to delete hidden folders in a directory ...i have the script to delete the folders but its deleting only read only its not deleting hidden files...

the snippet:FOR /D /R %%X IN (check*) DO RD /S /Q "%%X"

when i execute the above batch command the folders named "check" are deleted when its read only attribute but not getting deleted during hidden attribute ..help out ..Thank you


See More: delete hidden folders in a directory

Report •

#1
December 21, 2011 at 05:03:39
Hi
Try "attrib -h /d /s" to show hidden directories before deleting them.


Report •
Related Solutions


Ask Question