I'm working on a windows 7 premium 64 bits computer.
I own several USB flash drives. I've recently got a promotional one, when I plugged it on the computer the usual Windows popup that ask what you want to do with the drive (play videos/watch images/open in file explorer/etc.) only showed the open in explorer option, which I picked. What was odd is that instead of directly opening the explorer with the content of the flash drive, Windows opened My Computer and I had to open the drive from there. After that, every other flash drive I own got the same behaviour when plugged in and all the file they contained "disappeared". The space on the drive was still used so I guessed that my file were not deleted however I had no way to show them. After a bit of digging arround I found a solution in the following command :
attrib -h -r -s /s /d x:\*.*
where x is the name of the drive. This allowed me to get my files back so my question is what happeend and how can I prevent it ?