How to unhide file or folder
Some viruses come from internet or virus effected computer. These viruses usually come from USB Flash drives and disable the functions like hidden files can not be unhidden again etc.
In this situation, the good old DOS commands to unhide files and folders. This is also beneficial for cleaning the virus from the thumb drive.
Method for Unhiding the Files/Folders.
1. Click start >> run >> type in "cmd"
2. Type the location of your flash drive.. e.g. drive letter "e:", "f:", "g:" etc.
3. Type "dir /ah" (you will now see the files/folders with hidden attributes)
4. Type "attrib [name of file/folder] -r -a -s -h"
(If you are going to unhide files, you should type the whole name plus the extension. e.g "xyz.doc -r -a -s -h")
(If you are going to unhide files with specific extension, you should *.extension. e.g "*.doc -r -a -s -h")
(If you have folders with 6 characters and above, type the first 6 characters then "~1". e.g for folder named "experiences" "attrib experi~1 -r -a -s -h")
OR
5. Type "attrib -r -a -s -h /s /d *.*"
6. Check your flash drive. You should see unhide files and folder in your flash drive.
Definition of elements
-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 that any file with any extension will be processed with this command. So all the files in the directory where this command is run will be unhidden and will become read-write. You will be able to edit and delete the files.
attrib *.* -h -s /s /d (If you want to unhide all folders + subfolders and files, run this command:
dir/ah If you simply want to display a list of hidden files and folders and not change their attributes, run this command.
0 comments:
Post a Comment