A USB flash drive is easy to carry and easy to open on another computer. If it contains personal photos, private documents, project files, or presentation material, hiding selected folders can reduce accidental exposure in ordinary File Explorer views.
This guide shows two approaches: GiliSoft File Lock Pro for password-controlled external-drive hiding, and the Windows attrib command for a basic hidden-folder attribute. It also explains how to unhide the folder later.
Choose the Right USB Folder Hiding Method
| Method | Best for | What to know |
|---|---|---|
| GiliSoft File Lock Pro | Private USB folders that need password-controlled management | Hide and unhide selected external-drive content from one interface. |
| Windows attrib command | Basic concealment without installing software | Hidden and System attributes can be reversed and are not encryption. |
Method 1. Hide a Folder on a USB Drive with File Lock Pro
File Lock Pro includes a dedicated External Disk > Hiding File area for removable storage. Connect the USB drive before adding its private folders.
- Connect the USB flash drive and confirm its drive letter in File Explorer.
- Open GiliSoft File Lock Pro and enter the master password.
- Choose External Disk, then select Hiding File.
- Select Hide Files/Folders and choose the folder on the USB drive.
- Confirm the folder appears in the protection list and verify that it is no longer visible in an ordinary File Explorer window.
- Safely eject the USB drive after the operation is complete.
Use External Disk > Hiding File to manage selected folders on connected removable storage.
Password-controlled external folder hiding
File Lock Pro is designed for users who want to hide selected USB content without relying only on an easily reversed Windows attribute.

Method 2. Hide a USB Folder with Command Prompt
The attrib command can apply Hidden and System attributes to a folder. Quotation marks allow folder names that contain spaces, so renaming the folder is unnecessary.
- Connect the USB drive and note its drive letter, such as E:.
- Press Win + R, enter cmd, and select OK.
- Enter the USB drive letter followed by a colon, for example E:, then press Enter.
- Enter attrib +h +s "Private Folder", replacing the sample name with the exact folder name.
- Press Enter, then reopen the USB drive in File Explorer to verify the folder is hidden.
Apply Hidden and System attributes to the exact USB folder name.
Hide an Individual Photo or File on the USB Drive
For a single photo, document, or video, include the complete file name and extension.
- Open Command Prompt and switch to the USB drive.
- Enter a command such as attrib +h +s "family-photo.jpg".
- Use File Explorer Properties when you are unsure of the exact extension.
- Press Enter and verify that the selected file is no longer shown in the normal USB folder view.
Include the file extension when hiding one photo, document, audio file, or video.
How to Unhide a Folder on a USB Flash Drive
Unhide with File Lock Pro
- Connect the same USB drive.
- Open File Lock Pro and enter the master password.
- Go to External Disk > Hiding File.
- Select the hidden folder and choose Unhide.
- Verify the folder is visible and opens normally in File Explorer.
Unhide with Command Prompt
- Open Command Prompt and switch to the USB drive letter.
- Enter attrib -h -s "Private Folder".
- Press Enter and reopen File Explorer.
- For a single file, include its complete file name and extension.
Remove Hidden and System attributes to restore the folder to the normal USB view.
Troubleshooting: The Hidden USB Folder Is Still Missing
- Check the drive letter: Windows may assign a different letter when the USB drive is reconnected.
- Check the exact name: quote folder names that contain spaces and include file extensions for individual files.
- Show hidden items temporarily: File Explorer can confirm whether the folder carries a Hidden attribute, but protected operating system files may require a separate view setting.
- Remove both attributes: use -h -s when the folder was hidden with both +h +s.
- Use the same protection tool: if File Lock Pro hid the folder, restore it inside File Lock Pro rather than changing unrelated Windows settings.
- Check drive health: if files disappear unexpectedly or the USB drive reports errors, stop writing new data and back up readable files.
USB Folder Privacy Checklist
- Back up irreplaceable files before changing attributes or protection rules.
- Confirm the correct USB drive letter and folder name.
- Use Command Prompt hiding only for basic concealment.
- Use password-controlled software when casual visibility is not enough.
- Test the unhide process before relying on the USB drive away from your main PC.
- Safely eject removable storage after each change.
Hide Private USB Folders with Clear Password Control
Use GiliSoft File Lock Pro to hide and restore selected files and folders on connected external storage from one Windows interface.
Download File Lock Pro Trial
