Lock your folder in your PC!!

Hola Amigos!!!!
Have you ever thought of locking your folder cause you don't want anybody else to see your folder?
Well i have come up with a batch program which will just server your purpose!
It is a password protected file!!
Save your batch file with .bat extension!!
Run this batch file first to create a folder named Private!!
Remember to change your password i have highlighted it!




cls
@ECHO OFF
color A1
mode con cols=50 lines=5
title Locker
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=(more than)"
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
echo Enter password to unlock folder
set/p "pass=(more than)"
if NOT %pass%== YOUR_PASSWORD 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



Enjoy!!!

Comments

Popular Posts