Run –> cmd
cd command (Change Directory)
help for the cd command
in the desired folder, run the command:
attrib -r -a -s -h *.*
Attrib command is used to add or remove attributes to a file. The attributes include read-only, archive, system, hidden etc. To add an attribute, use a plus (+) sign and to remove an attribute minus (-) sign is used. In the above command that certain attributes are being removed.
-r will remove the read-only attribute of the specified file.
-a will remove the archive attribute of the specified file.
-s will remove the system attribute of the specified file.
-h will remove the hidden attribute of the specified file.
*.* means any file with any extension will be processed. So all the files in the directory where this command is run will be unhidden and will become read-write.
To unhide all folders + subfolders and files, run the following command:
attrib *.* -h -s /s /d
On some systems
/h switches don’t work and
-h switches can be used instead. In such case use
attrib -s -h *.*
To simply display a list of hidden files and folders and not change their attributes, run the following command:
02.A-Z Index of the Windows CMD command line http://ss64.com/nt/
Display or change file attributes. Find Filenames.
ATTRIB [ + attribute | – attribute ] [pathname] [/S [/D]]
+ : Turn an attribute ON
– : Clear an attribute OFF
pathname : Drive and/or filename e.g. C:\*.txt
/S : Search the pathname including all subfolders.
/D : Process folders as well
R Read-only (1)
H Hidden (2)
A Archive (32)
S System (4)
C Compressed (128:read-only)
I Not content-indexed
L Symbolic link/Junction (64:read-only)
N Normal (0: cannot be used for file selection)
P Sparse file
03. Attrib – Edit file attributes http://ss64.com/nt/attrib.html