On occasion files and folders become hidden on external drives, PC hard drives and USBs after being misplaced, accidentally moved, or possibly from a virus. There are three solutions that allow you to access hidden files: use data recovery software, use Attrib Command, use Windows Control Panel. This article will show you each of these methods, and help you access hidden files.
Note: Make sure Dot Net Framework is installed in your PC or download the Dot Net Framework from theMicrosoft.
attrib -h -r -s /s /d g:\*.*
Here is a quick explanation of what the various Attrib Commands mean:
+r = This assigns the read-only file attribute to the file or directory.
-r = This removes the read-only attribute.
+s = This assigns the system file attribute to the file or directory.
-s = This removes the system attribute.
+h = This assigns the hidden file attribute to the file or directory.
-h = This removes the hidden attribute.
+c = This assigns the compressed file attribute to the file or directory.
-c = This removes the compressed attribute.
Note: Undo the changes you have made by once again going to Folder Options > Click on View tab and click on Restore Defaults button > Click on OK.
After that, download the Malwarebytes' Anti-Malware