USB is an invaluable device for storing data. However, it may become infected by viruses during usage, resulting in data loss or hidden files. The challenge is how to reveal hidden folders on a USB drive.
Typically, a simple method involves right-clicking on the hidden file or folder, selecting Properties, and deselecting Hidden under Attributes. However, when your computer is infected by a virus, you may be unable to remove the Hidden attribute. Therefore, using a command to unlock the hidden attribute becomes necessary to perform this action in any scenario.

This article will guide you through the process of revealing hidden folders on a USB drive:
Step 1: Open the command prompt dialog by clicking the Start button and typing Run

Step 2: In the Command Prompt window, enter the name of your USB drive on your computer using the format USB_drive_name:
For example, if your USB drive is G, type the command G: and press Enter, you will switch to drive G

Step 3: Type the command attrib -S -H /S /D into the Command Prompt window as illustrated:
Specifically:
- S removes the locked system attribute;
- -H removes the locked hidden attribute;
- /S, /D changes attributes for all files and folders on the USB drive.
