Sunday 21 October 2012

FOLDER LOCK USING BATCH FILES



Folder lock with password using notepad


Folder locker code!!!!!! password protected!!!!

1.open your notepad.
2.copy paste this code.....

@echo off
title Folder realthought
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST realthought 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 realthought "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=>"
admin
if NOT %pass%== realthought goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" realthought
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md realthought
echo Locker created successfully
goto End

 
3.save as "locker.bat"
4.now click on this batch file.it will create a folder named "realthought".
5.to lock this folder,again click on this batch file.then press "Y".now you can't see the realthought folder.
6.to unlock this folder,again click on this batch file(locker.bat) and password "realthought"

No comments:

Post a Comment