Hi Lotster.
In normal condition, on non infected files and folders those command line syntax given by Code kiddy should perfectly work.
Btw, I'm familiar with your situation, as it always happens here.
More,
As you mentioned, always have setting which reveal hidden files and folder is actually good for us.
Some viruses create permanent hidden attributes to those files on the drive root and to folders on the flashdrive (but sometimes not to the files inside the folders). Any command line or changing files/folders properties won't do any good. So then the last option is creating new folder and move all files to it. and for hidden files the only way is to open it and save it as under different name. That is totally painful, but that what I always do in helping friends.
As preventive measures aside from your antivirus, you may help the students by trying this following tips.
- Never put files into flashdrive root. Always put into folder (unless it's a flashdrive with special purpose, boot drive, or else). once the folder infected we can stil have the files a bit safer.
- When finished scanning flashdrive with any AV program but still suspect it, navigate the flashdrive with explorer in a way that always do a click on the left pane of explorer (which only single click needed instead of harmful double click on right pane, it's what those viruses want).
- Delete any visible shortcuts, any folder named recycler, any unknown exe files, any unknown dll files, any files with no extension but having system icon on it, any unknown autorun.inf (some won't, as it belongs to some AV program). Most of them appear as hidden (or sometimes read only) things.
Note: It won't work with infected system
Sorry it's little bit long but worth reading, I hope.
Kevin