- Back to Home »
- Tip and Tricks »
- Lock Folder w/out Any Software
Posted by : Unknown
Tuesday, May 14, 2013
Lock Folder w/out Any Software just open Notepad and copy the below code and save as locker.bat. At first time start it will create folder automatically for you. Folder name Private. Don't forget to change your password in the code its shown the place where to type your password.
after creation of Private folder again click on the locker.bat.it will ask.press Y then Locker folder will be disappeared.again to get it click on locker.bat. and give your password u will get the folder again.******************************************************************************************
cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
color a
mode con:cols=35 lines=2
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 Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
color a
mode con:cols=35 lines=2
echo Enter password to unlock folder
set/p "pass=Password: "
if NOT %pass%== admin goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
Note: The txt in RED color is where you put your desire password ..