E-mail: support@aayam.co

How to Show Hidden Folders in USB/Memory-Card/HDD

Dear All, We all faced such issues in Daily Life where Files in our Desktop, Laptop, Cell Memory or any other Flash Memory may affect from Virus, Worms or Trojans and the file extensions converted to .exe or may be Hidden.

 By connecting flash drives to the affected computer, often it shows flash drive containing just some folder’s shortcuts. Sometimes it shows nothing though drive’s properties show it has files in it. Even we get some inaccessible folder or file. This type of problem may also see in our local drives (HDD partitions). Even paid anti-virus is unable to resolve those folders; they just scan and detect The AUTORUN worm which one will execute all programs. Then our important files remain hidden.

Here we will see how we can solve this problem by using command line and batch file. Though the batch file is nothing but the executable file contains command lines. So solving the hidden and shortcut problem of USB or drives, we must have the administrator privilege as we will execute something.

Using Command Prompt:

To solve/fix the folder’s hidden or system file, the easiest way is to run a com

mand line. You can apply this command to USB and local drive as well, need to change the drive_letter.
Go to Run, type cmd and hit enter. In command prompt just type:

attrib -h -s -r -a /s /d drive_letter:\*.*

And hit enter. Be sure you’ve typed the drive letter (e.g. j:,h: or D:) instead of “drive_letter” in the command lineMy USB drive letter is J: and my command should look like:

USB, MicroSD, MiniSD or other Mmory Cards issue:

1. Connect your USB or memory card to the PC or laptop.
2. Copy these lines and paste it into a “new text file”

@echo off

attrib -h -s -r -a /s /d drive_letter:\*.*

3. In the 3rd line give the drive letter name (Example: J or K or L etc.) instead of “drive_name”
4. Save the text file as any_name.bat
5. Double click on the  any_name.bat  file and it will run in the command prompt and see the hidden  files/folders come back.
6. Delete the shortcuts and unnecessary files and folders from USB drive.


1. Copy these lines and paste it into a “new text file”

@echo off

attrib -h -s -r -a /s /d D:\*.*

attrib -h -s -r -a /s /d E:\*.*

attrib -h -s -r -a /s /d F:\*.*

attrib -h -s -r -a /s /d G:\*.*

attrib -h -s -r -a /s /d H:\*.*

attrib -h -s -r -a /s /d I:\*.*

attrib -h -s -r -a /s /d J:\*.*

@echo complete.

2. Save the text file as a bat file (example: any_name.bat)

3. Run this bat file by double-clicking on it.

Thus you can solve this kind of problems with a *.bat file. You can save the *.bat file for solving this hidden problem.

Important: These tutorials are applied for Windows 7/Vista/xp. You must have the administrative privilege to run the command or execute the .bat file. Put the ” : ” after the j, k, or D (drive letters). These commands are not case sensitive.

One Response so far.

  1. [...] Check our blog on How to show hidden files through attrib command. [...]