GiliSoft File Lock Pro

Hide private folders on USB flash drives and external disks, then restore authorized visibility from one password-controlled Windows application.

  • Hide selected files and folders on removable storage
  • Keep private USB content out of ordinary File Explorer views
  • Unhide authorized items with the File Lock Pro password
GiliSoft File Lock Pro for hiding USB folders

How to Hide a Folder on a USB Drive and Unhide It

Updated on July 23, 2026   |   By GiliSoft Editorial Team

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

MethodBest forWhat to know
GiliSoft File Lock ProPrivate USB folders that need password-controlled managementHide and unhide selected external-drive content from one interface.
Windows attrib commandBasic concealment without installing softwareHidden and System attributes can be reversed and are not encryption.
Important distinction: a hidden attribute reduces casual visibility, but it does not encrypt the folder. Someone who enables protected operating system files or clears the attributes may reveal it. Use File Lock Pro when you want managed, password-controlled access.

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.

  1. Connect the USB flash drive and confirm its drive letter in File Explorer.
  2. Open GiliSoft File Lock Pro and enter the master password.
  3. Choose External Disk, then select Hiding File.
  4. Select Hide Files/Folders and choose the folder on the USB drive.
  5. Confirm the folder appears in the protection list and verify that it is no longer visible in an ordinary File Explorer window.
  6. Safely eject the USB drive after the operation is complete.
Hide files and folders on an external USB drive with GiliSoft File Lock ProUse 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.

GiliSoft File Lock Pro box

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.

  1. Connect the USB drive and note its drive letter, such as E:.
  2. Press Win + R, enter cmd, and select OK.
  3. Enter the USB drive letter followed by a colon, for example E:, then press Enter.
  4. Enter attrib +h +s "Private Folder", replacing the sample name with the exact folder name.
  5. Press Enter, then reopen the USB drive in File Explorer to verify the folder is hidden.
Hide a folder on a USB drive with the attrib commandApply Hidden and System attributes to the exact USB folder name.
Full path option: you can run the command from another drive by entering attrib +h +s "E:\Private Folder". Verify the drive letter before pressing Enter.

Hide an Individual Photo or File on the USB Drive

For a single photo, document, or video, include the complete file name and extension.

  1. Open Command Prompt and switch to the USB drive.
  2. Enter a command such as attrib +h +s "family-photo.jpg".
  3. Use File Explorer Properties when you are unsure of the exact extension.
  4. Press Enter and verify that the selected file is no longer shown in the normal USB folder view.
Hide an individual picture on a USB drive with attribInclude 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

  1. Connect the same USB drive.
  2. Open File Lock Pro and enter the master password.
  3. Go to External Disk > Hiding File.
  4. Select the hidden folder and choose Unhide.
  5. Verify the folder is visible and opens normally in File Explorer.

Unhide with Command Prompt

  1. Open Command Prompt and switch to the USB drive letter.
  2. Enter attrib -h -s "Private Folder".
  3. Press Enter and reopen File Explorer.
  4. For a single file, include its complete file name and extension.
Unhide a folder on a USB drive with Command PromptRemove Hidden and System attributes to restore the folder to the normal USB view.

Troubleshooting: The Hidden USB Folder Is Still Missing

USB Folder Privacy Checklist

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