Thursday, July 23, 2009

How to make secure folder with no software needed

Here's the code, write it to notepad and save as:
"Locker.bat"
don't forget to choose all files..

cls
@ECHO OFF
title POTLOTLANDHEP - FolderLock - http://potlotlandhep.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto OPEN
if NOT EXIST locker goto MAKELOCKER
:CONFIRMATION
echo Are you sure to lock folder ? (Y/N)
set/p "cho=> "
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==t goto END
if %cho%==T goto END
echo Please select. Only Y/N !
echo .
goto CONFIRMATION
:LOCK
ren locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder has been locked.
goto END
:OPEN
echo Insert Password
set/p "pass=> "
if NOT %pass%== forumif goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" locker
echo Folder has been unlocked
goto END
:FAIL
echo wrong Password
goto END
:MAKELOCKER
md locker
echo Folder locker successfull [http://potlotlandhep.blogspot.com]
goto END
:END

No comments: