Friday, April 1, 2011

Folder is hidden & hidden check mark is disabled?

Due to virus attack or something, the folders in a pen drive might become hidden. The folders are still hidden even after cleaning the viurs. Tried folder-> right click -> properties to unhide the folders but the hidden option is disabled & unable to unhide the folders by this method. 

Solution for the above scenario

attrib -s -h folder name (for a single folder)
attrib -s -h /d (for all the directories)
attrib -s -h /s /d (for all the directories including the sub directories