Run –> cmd
use the cd
command (Change Directory)
help for the cd command cd /?
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.
Explanation:
-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 /s
and /h
switches don’t work and -s
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:
dir/ah
Reference:
01.http://www.itechtics.com/unhide-files-and-folders-by-single-dos-command/
02.A-Z Index of the Windows CMD command line http://ss64.com/nt/
Display or change file attributes. Find Filenames.
Syntax
ATTRIB [ + attribute | – attribute ] [pathname] [/S [/D]]
Key
+ : 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
attributes:
R Read-only (1)
H Hidden (2)
A Archive (32)
S System (4)
extended attributes:
E Encrypted
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)
O Offline
P Sparse file
T Temporary
Reference:
03. Attrib – Edit file attributes http://ss64.com/nt/attrib.html