Pages

Thursday, 26 December 2013

Lock a Folder Without Any Software

Open Notepad and paste the following text in blank page of notepad
Remember that you must type your password in the given area before save the text
Save this file as yourfoldername.bat to location where you want to create folder
Open file yourfoldername.bat which is a (Windows Batch File). It will create a folder named Locker for 1st time
Again click on yourfoldername.bat file it will ask do you want to lock your folder click y+enter and folder will disappear
Now by clicking again yourfoldername.bat file you will be prompted "enter password to unlock"
Give your password folder will appear again

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  by bhalaygilani.blogspot.com"enter passeord to unlock"
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

Note:If Some one deletes your file yourfoldername.bat..No problem your folder is hidden and save
you just create it again where it was, your folder will be back

Followers