Wednesday, February 8, 2012

Lock Any Folder In Windows OS Using Only Notepad

Open notepad from your windows start button.

Copy and paste this under given code in your notepad and save it as "EniacSystemsLock.bat"



cls

@ECHO OFF

title ENIAC SYSTEMS Folder Lock

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST EniacSystemsLock 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 EniacSystemsLock "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%==ENIACSYSTEMS goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" EniacSystemsLock

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md EniacSystemsLock

echo Eniac Systems Lock created successfully

goto End

:End




Now Double Click that new Batch file named "EniacSystemsLock" and it will make a new folder

named EniacSystemsLock at the same location :

Now put the Data Inside the folder "EniacSystemsLock" and again Double Click the Batch file to

Lock it, this will ask "Are you sure you want to lock the folder, just Type y and press Enter. Now the

folder and your file gets locked.

Now keep the Batch File named "EniacSystemsLock.bat" at a different place like your USB Pen

Drive so that only you can unlock and access the folder you have locked.

To Unlock the Folder and your file, just double click the Batch file "FolderLock" again and it will

say "Enter password to unlock folder",the default password is set as "ENIACSYSTEMS", so just type "y".

No comments:

Post a Comment