1. Open Notepad
2. Copy the code below and paste it in notepad.
:End
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker "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%==12345678 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
**in the above batch code, the default password is 12345678 (red color) and you can edit and change the password using your own password.
3. Now save the notepad file with the code as locker.bat in the where you want to lock.
4. Now a batch file will be created in the location where you saved it.
5. Double click on locker.bat file and a Locker folder will be created at the same location where your locket.bat file is saved.
6. You can store your personal data in Locker folder.
7. After storing all you data in that folder, open locket.bat again and type Y to lock the folder and also to hide the folder, then press Enter.
8. To open/show the folder, just double click on locker.bat file and enter the password.
This is a simple trick of notepad programming on how to lock and hide a folder in windows XP, vista and 7.
No comments:
Post a Comment