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
Step 1: Create a folder of any name.
Step 2: Double click the folder to enter inside it. Now create a new text file
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
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
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD
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
ren "Control Panel.{21EC2020-3AEA-1069-A2DD
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
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
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.
-Abhishek
Post a Comment
Blogger Facebook DisqusComment ေပးရန္ ညာဘက္ေထာင့္မွ Blogger or Facebook or Disqus ကုိႏွိပ္ပါ။