Sunday, January 11, 2015

How to Recover Hidden files (Files affected by Shortcut Virus) on USB Drives?

Step 1- Open CMD : 

Press Win+R keys to open Run. Type "cmd" in the text box to open command prompt.




Step 2 - Coding :

 Type "attrib -h -r -s /s /d x:\*.*" where 'x' is the drive letter of the usb drive. Press Enter.
Thats All




Video Demonstration



How This Works ?


Attrib allows a user to change the attributes of a file or files. With attrib, you can change any of the add or remove any of the attributes below. 
Read-only - allows the file to be only viewed and not written to or changed.
Archived - allows Microsoft Backup and other backup programs to know what files to back up.
Hidden - makes files invisible to standard users and hidden if show hidden files is enabled.
System - makes the file an important system file.

-h -> removes hidden file attribute.
-r -> removes read-only file attribute.
-s -> remove system file attribute.
/s -> make these changes to all subfolders.
/d ->make attribute to folders as well.
*.* -> make changes to  all files.
+ -> sets an attribute.
- -> removes an attribute.


HIDING FILES USING THIS METHOD?

Enter "attrib +h +r +s /s /d X:\*.*" in the command prompt. 
This code hides all files in the specified path that cannot be viewed in Windows Explorer ("Show Hidden Files" option). 

No comments:

Post a Comment