hey guys u might have learned the trick to lock folders by creating two batch files.
But this trick is slightly modified so that u can even assign a password
1) first of all copy the following code in notepad
2) Now you can see "type your password here" in the code (23rd line) . Delete that and type in your password there.
3) save this file with any name and extension ( .bat)
4) Now double click the batch file. It will create a folder named "Locker"
5) Put all the files u want to lock in that folder
6) Now double click on the batch file to lock the folder.
7) Now if you want to unlock the folder double click that batch file again and you will be prompted for password.
note: All such kind of tricks fail when you change the folder name
But this trick is slightly modified so that u can even assign a password
1) first of all copy the following code in notepad
cls
@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%==type your password here 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
:End 8/13/08 ??a??a??.....
@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%==type your password here 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
:End 8/13/08 ??a??a??.....
2) Now you can see "type your password here" in the code (23rd line) . Delete that and type in your password there.
3) save this file with any name and extension ( .bat)
4) Now double click the batch file. It will create a folder named "Locker"
5) Put all the files u want to lock in that folder
6) Now double click on the batch file to lock the folder.
7) Now if you want to unlock the folder double click that batch file again and you will be prompted for password.
note: All such kind of tricks fail when you change the folder name