How to show hidden files in Windows 10 using Command prompt  

Although we can show hidden files using the keyboard shortcut and GUI interface, however, if you are not a fan of Windows graphical file explorer and prefer to use a command line, then using that unhide files is possible as well.

Most of the time, especially those who are into system security and development they use the command line interface to go through various files and directories. And to get reconnaissance of all files and folders, we need to unhide hidden files.  This can be very helpful in various situations such as while having some virus that makes duplicate copies and hides them so that users could not see them with default settings of Windows 10/8/7/Vista/XP. 

Command to unhide files & folder on Windows 10 using CMD

  • Open Command Prompt (CMD).
  • Go to the folder/directory where you want to unhide all hidden files.
  • After that type attrib -H -S
    -H for Hidden and -S for System attribute set.
  • To show all hidden subfolders recursively and along with directories themselves then use
    attrib -H -S  /S /D
    /S for all Sub-folders and /D for Directories.
  • In case you want to remove hidden settings from all the system folders and files available inside a Drive, use attrib -H -S J:\*.* /S /D
  • Note: In the above command J: is the Drive letter and in that Drive, we want to unhide all files and folders.
  • To unhide files from some particular folder, the command will be
    attrib -H -S J:\folder-path\*.* /S /D
  • Replace J:\folder-path with your drive and folder path.

Show hidden files using command line on Windows 10

If you are not a command-line person, use Graphical File Explorer to show hidden folders in Windows 10 or Keyboard shortcuts.


Other Tutorials:


1 thought on “How to show hidden files in Windows 10 using Command prompt  ”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.