Developer & Internet Marketer

Welcome to my blog.

Sed sed leo sit amet elit sagittis fermentum. Nulla posuere commodo erat. Nam ac nunc ipsum, id espara tincidunt orci. Quisque adipiscing molestie dolor, ut congue sem porta et. Sed sapien urna, auctor et accumsan ut, accumsan sit amet dui. Nunc tristique interdum magna, dictum volutpat sem. Nam ac nunc ipsum, id espara tincidunt orci. Sed sapien urna, auctor et accumsan ut.

How to find hidden files in Windows using DOS command?

April 27, 2017wp-himu2 Comments

Hidden files are the files on computer that have hidden attribute with them. Files that exist but your computer don’t show them to you. Remember: Any file or folder can be made hidden. Right click on a file, select properties, and check the hidden attribute option under general tab and press OK button. Mind you all readers, this is not the general way to view and find hidden files. If you’re looking for the basic steps then this is not for you. In this article we are going to find hidden files in your Windows system using DOS command.

hidden files and folder image

DOS Command to Find Any Hidden File:

Open DOS (Disk Operating System), go to search option and search for “CMD“or type “CMD” in RUN (Window Key+R). Now copy or type in Dos
Dir C:\*.mp4  /a:h/s
And wait for 2-3 minutes.

NOTE : The above command will only find hidden videos having .mp4 extension in C drive. If you wish to find in D drive replace C with D or with respective drive letter. Replace C drive with %systemdrive% to include searching operation in all the drives of your computer.

Dir %systemdrive%\*.mp4  /a-h/s 

ANY ERROR ? Please mind the necessary space in the command :

Dir <space> C:\*.mp4 <space> /a-h <optional space> /s

Dir  means directory(folder) and *.mp4 means mp4 files with any name
a stands for ‘attribute’.
for ‘hidden’.
s means ‘sub directory  included’.

Update: Change the :h to -h or vice-versa if any command is not working for you.

hidden files shown at dos

Find Hidden Videos:

Video files on windows have following extensions (.mp4, .avi, .mov etc.) as mentioned below and to find these hidden files in your windows system you have to use customized the above mentioned DOS command

MP4 files : Dir  %systemdrive%\*.mp4    /a-h /s
MP4, AVI, MKV and WMV : Dir  %systemdrive%\*.mp4 %systemdrive%\*.avi %systemdrive%\*.mkv %systemdrive%\*.wmv   /a-h /s

Some other Famous Video Formats are .flv and .mov that can be used in the above command.

Find Hidden Images or Pictures :

To find Hidden Images files, use following DOS command and sometimes you may have to replace :h with -h.

JPG files : Dir  %systemdrive%\*.jpg    /a:h /s
JPG, PNG and GIF : Dir  %systemdrive%\*.jpg %systemdrive%\*.png %systemdrive%\*.gif    /a:h /s


JPG files : Dir  %systemdrive%\*.jpg    /a-h /s
JPG, PNG and GIF : Dir  %systemdrive%\*.jpg %systemdrive%\*.png %systemdrive%\*.gif    /a-h /s


Find Hidden Music Files:

Following DOS command will find out hidden files that are music types on windows system.

For MP3 : Dir  %systemdrive%\*.mp3    /a:h /s 
For MP3 : Dir  %systemdrive%\*.mp3    /a-h /s 

Other Common audio file extensions that may be made hidden are .WAV, .AIF and .MID.


Find hidden Ebooks or pdf:

Use following DOS command to find out all .PDF, .EPUB and .TXT files on your windows computer.

PDF files : Dir  %systemdrive%\*.pdf   /a:h /s
PDF, EPUB and TXT : Dir  %systemdrive%\*.pdf  %systemdrive%\*.epub  %systemdrive%\*.txt /a:h /s


PDF files : Dir  %systemdrive%\*.pdf   /a-h /s
PDF, EPUB and TXT : Dir  %systemdrive%\*.pdf  %systemdrive%\*.epub  %systemdrive%\*.txt /a-h /s


I hope all the above DOS commands are working for you. If you are facing any problem in finding out hidden files using this DOS command then leave a comment below.

This article has 2 comments
  1. James Benson
    October 11, 2013

    You do realise what your snapshot contains I hope

      October 11, 2013

      Ya I know that… this is what you find when you try this command on your friend’s computer.

Leave a Reply
www.edatastyle.com www.introducingsomething.com