To recover the hidden files from pendrive after virus infection,
1. Open Command prompt
and type the following command
attrib -h -r -s /s /d M:\*.*
(Assuming M is the drive letter for the pen drive)
2. Now, check your pen drive for the hidden files