How to create your own folder lock program in windows 7
I'm going to show you how to create your own password protected folder lock program using notepad.
Follow these steps...
1. Open Notepad.exe.
2. Copy following code and paste it in notepad.
CLS
ECHO OFF
CLS
TITLE Folder Locker
ECHO.
IF EXIST Locker. goto CONFIRM
IF EXIST "Control Panel.{ED7BA470-8E54-465E-825C-99712043E01C}". goto UNLOCK
IF NOT EXIST Locker. goto MDLOCKER
:CONFIRM
ECHO Are you sure you 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.{ED7BA470-8E54-465E-825C-99712043E01C}"
attrib +h +s "Control Panel.{ED7BA470-8E54-465E-825C-99712043E01C}"
echo Folder Locked
goto END
:UNLOCK
echo Please Enter your Password to Unlock the Folder
set/p "pass=>"
IF NOT %pass%==1234 goto FAIL
attrib -h -s "Control Panel.{ED7BA470-8E54-465E-825C-99712043E01C}"
ren "Control Panel.{ED7BA470-8E54-465E-825C-99712043E01C}" Locker
echo Folder Unlocked
goto END
:MDLOCKER
echo Do you you want to create a Locker Folder (Y/N)?
SET /p "crt=>"
IF %crt%==Y goto CRT
IF %crt%==y goto CRT
IF %crt%==N goto END
IF %crt%==n goto END
goto FAIL
:CRT
md Locker
goto END
:END
3. In the code, you can see some text ("1234") in red colour. That is the password. You can replace it with your password.
4. Then goto file ---> Save As...
5. Set "Save as type" to "All files (*.*)" .
6. Save it as "FloderLocker.bat"
That's it.....! Now you can use your own Folder Locker program.
0 comments:
Post a Comment