My pen drive/flash drive had a virus attack. I remove them with my Anti-Virus.But all folders in the pen drive are become hidden. but files are visible.
I try to change the attributes by right clicking on folder and try change attribute using folder properties as shown in the image. it’s not working.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP-D0R3TCkcl1q5lQvDoQVgiSM542zwv_8NY3a0TgbIQBG6V9MdJEjg9I5W8iog8Dkh3mcJp-I2fhCZT8Wnz6jHFBP1u-SkM58jdUqfUJ7JtDpjgA3cUxiLSHCucrsLKxIAkxo3D9_LHI/s320/uncheck_hidden.jpg)
I used control panel-folder option-view-show hidden files.... but it also not working.
Now how do I unhide hidden folders in my Flash drive.
Yes you can unhide all of your hidden folder by changing file attribute.
To do this ,
(1) Click "Start" -->"Run"
(2) Type "cmd" at Run dialog to run command prompt /or you can go start->programs->accessories->Command Prompt
(3) In command prompt type your flash drive's drive letter (It's depend on your PC ,it may be f ,e ,g,h or other letter) with a colon and press Enter.(I have given a picture)
(4) Change file attribute by typing "Attrib -a -s -r -h /s /d" and press Enter.(I have given a picture)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiueHGPkisMg0FkaBxSAmHHmturtPp4s6_LHLkrf54kuwP1VbDlpywe7NcBapQv2rq2gZ0v88tN6rUdfxIWA1BSxoYj38M2HiVm9mvQkoGzeotFgAyENffFo9EsqGgJwnxENa_fMYwHKuc/s320/attrib_command1.jpg)
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.
That's all , Now you should view all of your hidden files and folder in your pen drive that causes by autorun virus.