Hi Friends!
Today I am going to share with you a very special trick to lock and hide a folder in Win 7. It's simple and quite unique, an extension to my earlier posts( the one in which I wrote about folder in God Mode) and the main advantage is that it doesn't require any Third party software.
Of course, everything has a loop hole and the same goes with this one. I will tell about this in the below section.
First let's get started.
Step 1: Create a folder of any name.
Step 2: Double click the folder to enter inside it. Now create a new text file as shown below
Step 3: Open this text document. Copy and Paste this code:
cls
@ECHO OFF
title Folder Personal
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Personal goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Personal "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End
Change the PASSWORD to the password you want to keep. For example, if you want to keep your password as google then rewrite as follows:
if NOT %pass%== google goto FAIL
Step 4: Save this text file as Locker.bat as shown below
Note the double quotes for "Locker.bat" and Save as types to All Files. Actually only one between the two is needed i.e you either save the file name in double quotes and leave the Save as type to Text Document (*.txt)
or
you can leave the double quotes and change the Save as types to All Files.
I did both to tell you that even this works fine.
Step 5: Now double click the Locker.bat file created above, after a second you will notice that a folder with the name Personal is created (the third line of the code, before we check for the existence of the folder).
Step 6: Copy and Paste whatever you want to keep in this 'Personal' folder. Then double click the Locker.bat file, it will prompt you for confirmation on Locking as shown:
Step 7: Press Y or y as per the code to lock the folder.
Now the folder will disappear, even if you have set the Folder Options to Show hidden files, folders, and drives
Step 8: To unlock and show this folder, double click Locker.bat. This time it will prompt you to enter the password
As you can see, I have provided the password in Caps, as the password is case sensitive. Also, keep in mind that the script written above does not show any messages if you enter incorrect password. It just vanishes.
And we are done!
Some tips: you don't need to feel frightened if you forgot your password, just right click Locker.bat, and choose Edit
Now you can see your password and Unlock 'Personal' folder by following from Step 6 (second part).
As an extra protection measure, you can change the attribute of Locker.bat to hidden and then select Don't show hidden files, folders, and drives(see the second image in Step 7). And whenever you want to use this folder you can change your selection in Folder Options.
Hope you find this useful. Feel free to leave any comments.
Today I am going to share with you a very special trick to lock and hide a folder in Win 7. It's simple and quite unique, an extension to my earlier posts( the one in which I wrote about folder in God Mode) and the main advantage is that it doesn't require any Third party software.
Of course, everything has a loop hole and the same goes with this one. I will tell about this in the below section.
First let's get started.
Step 1: Create a folder of any name.
Step 2: Double click the folder to enter inside it. Now create a new text file as shown below
Step 3: Open this text document. Copy and Paste this code:
cls
@ECHO OFF
title Folder Personal
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Personal goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Personal "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End
Change the PASSWORD to the password you want to keep. For example, if you want to keep your password as google then rewrite as follows:
if NOT %pass%== google goto FAIL
Step 4: Save this text file as Locker.bat as shown below
Note the double quotes for "Locker.bat" and Save as types to All Files. Actually only one between the two is needed i.e you either save the file name in double quotes and leave the Save as type to Text Document (*.txt)
or
you can leave the double quotes and change the Save as types to All Files.
I did both to tell you that even this works fine.
Step 5: Now double click the Locker.bat file created above, after a second you will notice that a folder with the name Personal is created (the third line of the code, before we check for the existence of the folder).
Step 6: Copy and Paste whatever you want to keep in this 'Personal' folder. Then double click the Locker.bat file, it will prompt you for confirmation on Locking as shown:
Step 7: Press Y or y as per the code to lock the folder.
Now the folder will disappear, even if you have set the Folder Options to Show hidden files, folders, and drives
Step 8: To unlock and show this folder, double click Locker.bat. This time it will prompt you to enter the password
As you can see, I have provided the password in Caps, as the password is case sensitive. Also, keep in mind that the script written above does not show any messages if you enter incorrect password. It just vanishes.
And we are done!
Some tips: you don't need to feel frightened if you forgot your password, just right click Locker.bat, and choose Edit
Now you can see your password and Unlock 'Personal' folder by following from Step 6 (second part).
As an extra protection measure, you can change the attribute of Locker.bat to hidden and then select Don't show hidden files, folders, and drives(see the second image in Step 7). And whenever you want to use this folder you can change your selection in Folder Options.
Hope you find this useful. Feel free to leave any comments.
Well written
ReplyDeleteGood job mate
ReplyDeletegood post mac. How to get back your recycle bin ?Recycle Bin is used to keep unnecessary files or folder.today i got a mail some one delete recycle bin option .now how he want to know how he can get back their recycle bin after deleting it inwindows XP.http://www.hotw3.com/
ReplyDelete