HOW TO Display & Delete HIDDEN Files using DOS by Raj The Hacker
I
would like to let you all know that in Windows, files/folders has a special
attribute called hidden attribute. By setting this attribute, we can hide files
from being displayed in explorer or command prompt. I will tell you how to display
or list these hidden files in windows using command line or DOS and also how to
delete those hidden files.
To
display list of hidden files from a particular directory you can type.
dir directory_path
/A:H /B
for eg:
Get
the list of hidden files from C:\Windows\system32 folder.
C:\>dir c:\WINDOWS\system32 /A:H /B
cdplayer.exe.manifest
dllcache
GroupPolicy
logonui.exe.manifest
ncpa.cpl.manifest
nwc.cpl.manifest
sapi.cpl.manifest
WindowsLogon.manifest
wuaucpl.cpl.manifest
Get
list of hidden files from all sub directories you just have to add /S switch to the command.
dir directory_path
/A:H /S /B
Example:
To get the list of hidden files from the folder c:\windows\system32 and from all its subfolders we need to run the below command.
To get the list of hidden files from the folder c:\windows\system32 and from all its subfolders we need to run the below command.
dir
c:\WINDOWS\system32 /A:H /B /S
List
all hidden folders:
If
you want to get the list of all hidden subfolders in a folder type
dir /s /b
/A:DH
To
delete hidden files from command prompt For example to delete a hidden file
named raj.doc you just type.
del /A:H raj.doc
Note
that /A:H is necessary otherwise you will get ‘file not found’ error like
below.
C:\>del raj.doc
Could Not Find C:\ raj.doc
To
delete all hidden files from a given directory we can run the below command.
del
directory_path /A:H
Alternatively
you can cd to that directory and then run the below command.
del * /A:H
To
delete hidden files from subfolders also you can do that by adding /S switch
del * /A:H /S
THANKS
RAJ THE HACKER
8270859989
No comments:
Post a Comment
Give your Comments 2 me:
I would be in ur Support...
---Thanks ---
Raj_The_Hacker
8270859989