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.

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)

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