Cannot open files on USB flash drive: how to access them

Cannot open files on USB flash drive: how to access them

This FAQ will walk you through how to recover your files on a USB drive that has hidden them.

How to access files on a USB flash drive that won't open?

  • Open a new text document in your flash drive, and enter the following code into the text document:
@echo off 
attrib -s -h -r /s /d 
cls 
exit
  • Go to File > Save as, and save the document as unhide.bat.
  • Close and delete the text document that you've just created. Double-click the unhide.bat batch file. A black command screen will pop up and close on its own.

You should now be able to access your files on the pen drive.

How to fix a corrupt USB flash drive to recover files?

If you still cannot access them, it may be because your USB drive has been corrupted or infected with a virus. To repair any damage done, you can try to run chkdsk.

  • To do so, press the Windows Key + X. Next, in the Power Users menu, select the Command Prompt option. Click Yes in the window that pops up.
  • In the Command Prompt window, type chkdsk E: /f /r /x (replacing E with your drive letter), then press the Enter key.
Looking for more USB-related tips? Check our forum!