There are many different programs out there that allow you to protect
files and information. However, there is an easy way to “lock” the
contents of a folder on the Windows desktop by double-clicking on a file
and without using third-party software.
To accomplish this task, we will create a folder and two batch files, one to lock the folder and one to unlock the folder.
To create the folder to contain the private files, right-click on the Desktop and select New | Folder from the popup menu.
NOTE: You can create a folder to contain your protected files anywhere. We’re just using the Desktop as an example.
Name the folder “safe” (without the quotes). You can name it something else if you want. You will just have to use the different name in the batch files you will create.
Double-click on the new folder to open it and copy and paste any files you want to protect into the folder.
The folder icon on the Desktop indicates there is at least one file in the folder.
jfdksjaf
To create the locking batch file, open Notepad and copy one of the following lines into a blank text file, depending on which version of Windows you are using.
Windows 7 and Vista:
Save the file as lock.bat.
To create the corresponding unlocking batch file, open Notepad and copy one of the following lines into a blank text file.
Windows 7 and Vista:
To lock and unlock the safe folder, the batch files must be located in the same place as the safe folder. Double-click on the lock.bat file to lock the folder. At first, the folder icon changes to an empty folder. If you press F5 to refresh your desktop (or in Windows Explorer), the icon for the folder changes to a lock. When you double-click on the locked folder, it will not open.
To unlock the folder and access the files inside it, double-click on the unlock.bat file. The folder’s icon changes back to a folder with paper in it and double-clicking on the folder opens it.
The important thing to remember is that this method of locking a folder is not secure if you leave the lock.bat and unlock.bat files in the same location as the safe folder. You should move the two batch files to a separate location from the safe folder. Only copy the batch file you need to the same place as the safe folder when you need to lock or unlock the folder. Then, move it (or delete it, if you only copied it). Otherwise, anyone can access your protected data.
To accomplish this task, we will create a folder and two batch files, one to lock the folder and one to unlock the folder.
To create the folder to contain the private files, right-click on the Desktop and select New | Folder from the popup menu.
NOTE: You can create a folder to contain your protected files anywhere. We’re just using the Desktop as an example.
Name the folder “safe” (without the quotes). You can name it something else if you want. You will just have to use the different name in the batch files you will create.
Double-click on the new folder to open it and copy and paste any files you want to protect into the folder.
The folder icon on the Desktop indicates there is at least one file in the folder.
jfdksjaf
To create the locking batch file, open Notepad and copy one of the following lines into a blank text file, depending on which version of Windows you are using.
Windows 7 and Vista:
ren safe safe.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}Windows XP:
ren safe safe.{FEF10DED-355E-4e06-9381-9B24D7F7CC88}NOTE: If you used a name other than “safe” for the folder, replace “safe” in the batch file with the name of your folder.
Save the file as lock.bat.
To create the corresponding unlocking batch file, open Notepad and copy one of the following lines into a blank text file.
Windows 7 and Vista:
ren safe safe.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}Windows XP:
ren safe safe.{FEF10DED-355E-4e06-9381-9B24D7F7CC88}Save the file as unlock.bat.
To lock and unlock the safe folder, the batch files must be located in the same place as the safe folder. Double-click on the lock.bat file to lock the folder. At first, the folder icon changes to an empty folder. If you press F5 to refresh your desktop (or in Windows Explorer), the icon for the folder changes to a lock. When you double-click on the locked folder, it will not open.
To unlock the folder and access the files inside it, double-click on the unlock.bat file. The folder’s icon changes back to a folder with paper in it and double-clicking on the folder opens it.
The important thing to remember is that this method of locking a folder is not secure if you leave the lock.bat and unlock.bat files in the same location as the safe folder. You should move the two batch files to a separate location from the safe folder. Only copy the batch file you need to the same place as the safe folder when you need to lock or unlock the folder. Then, move it (or delete it, if you only copied it). Otherwise, anyone can access your protected data.
No comments:
Post a Comment