Sunday, 11 April 2010

..::Folder Locker::..

Need a program to lock a file or two, maybe a Folder?

Well, yes you can dowload one, or you might just do it yourself!







open notepad an copy this:

@ECHO OFF
title PcCommand's Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Locker goto MDLOCKER

:CONFIRM
cls
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.

pause

goto CONFIRM

:LOCK
cls
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

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

echo Folder locked
echo.
pause

goto End

:UNLOCK
cls
set /p pass=Password:

if NOT %pass%==here goes your password goto FAIL
if %pass%==
here goes your password goto Next

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

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

echo Folder Unlocked successfully
echo.
pause
goto End

:FAIL
cls
echo Invalid password

pause

goto UNLOCK

:MDLOCKER
cls
md Locker

echo Locker created successfully

pause

goto End

:End


Then, Save it as:
Anything.BAT

No comments:

Post a Comment