Monday 11 April 2016

How to Unhide Permanently hidden file

You may found that file in your pen-drive are not visible and your are note able to unhide the same using properties of file.

This occurs due to virus.Viruses cause different type of damage on your computer. There are some viruses that will encrypt your file so you are force to buy the decryption key form the programmer. This type of virus knows as ransomware. There is another type of virus which will hide your file and folder by setting the hidden and system attributes to the files.

To see Hidden Files, Folder Do Following steps
  1. Go to Control Panel > Folder Options
  2. Now in Folder Options go to View Tab.
  3. Now Select "Show hidden Files, Folders and Drives" radial button and also Uncheck "Hide protected operation system files".
  4. Then click on Apply and Ok Button.

To change attributes of permanently hidden file or folder windows  have a attrib command. Syntax of attrib command as below.

 ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
       [drive:][path][filename] [/S [/D] [/L]]

  +   Sets an attribute.
  -   Clears an attribute.
  R   Read-only file attribute.
  A   Archive file attribute.
  S   System file attribute.
  H   Hidden file attribute.
  I   Not content indexed file attribute.
  [drive:][path][filename] Specifies a file or files for attrib to process.
  /S  Processes matching files in the current folder and all subfolders.
  /D  Processes folders as well.
  /L  Work on the attributes of the Symbolic Link versus the target of the Symbolic Link

eg suppose virus permanently hide file or folders in your Drive. Then you can use following command. To run this command you have to run command prompt with administrative privilege.

"attrib -S -H  [drive:][path][filename] /S /D"