Saturday, June 27, 2015

How to Hide or Unhide your files with single click

Protection is compulsory for every system, and there is a necessity to secure our data in the computer. In order to secure our files, we have to hide the files. Generally hiding the files is by going to properties and and check the hide option there, but we can also hide/unhide the files with a mouse click. If we follow the below explained procedure, it will be very easy to hide all the files or based on the files type.




Advantages of this trick:
  1. We can Hide/Unhide all the files in a directory with a single click
  2. If we follow the traditional hide/unhide approach, it will be very difficult and time will be taken to hide files again, once the files are unhidden. But with this trick we can hide/unhide the large number of files with single click every time.
  3. We can hide/unhide the file based on the type/format( for example we can hide only images or only text files or both)

Step 1: Open Notepad, copy and paste the below code.

Hide:

attrib +h +s "[Path]*.*"
attrib -h -s Hide.bat
attrib -h -s Unhide.bat

Unhide:

attrib -h -s "[path]*.*"

Step 2: After copying and pasting both Hide and Unhide codes in separate notepads, save them with Hide.bat and Unhide.bat file names (.bat is compulsory)

[path] is the address of the path where we want to hide the files and it is optional.

Note:
  1. If you want to hide the files in the place where these batch files (with .bat extension) are saved, then simply use “*.*” then we don’t require to mention the path.
  2. If you don’t want to hide the files in the location where Hide.bat and Unhide.bat files are saved then replace the path with the actual path where you want to hide the files.

Ex 1: attrib +h +s "C:\ABC\*.*" - Hides all the files in ABC folder of C Drive.

Ex 2: attrib +h +s "C:\ABC\*.txt" - Hides all the Text files in ABC folder of C Drive.

Ex 3: attrib +h +s "*.*" - Hides all the files in the folder where this Hide.bat file is saved.



Step 3: Now double click on the Hide.bat file to hide the files.


Now double click on Unhide.bat file, to unhide the files that you hide earlier


Thanks for reading!!! Please share the knowledge that you now

0 comments:

Post a Comment

Please Leave your comments below....