1. Windows
Fix the hidden files/folders on a USB key.
When the USB key is attached all files/folders are missing. All the files/folders seem lost and we format the USB key.
In fact, most times the files/folders are not missing, they are hidden as system/hidden files/folders. If the computer has default File Explorer Options settings with Show hidden files, folders, and drives unchecked and with Hide protected operating system files (recommanded) checked, the USB key will show as empty or some files/folders are missing.
If the machine shows the hidden files, when you open the folder properties, you will see that the Hidden checkbox is checked and greyed out and you cannot uncheck it, that is boring. The solution is:
-
We need to know the drive letter of the USB key. For example, E: F: G: H:, etc.
-
Enter the following commands at a Command Prompt.
-
Note: Replace the X below representing the drive letter with the actual drive letter of the USB key.
X: attrib.exe -a -r -h -s /d /s