Web Toolbar by Wibiya

Pages

PLEASE,CLICK HERE TO SUPPORT US!! (ChetaN)

Sunday, 9 October 2011

* Folder Lock Using Notepad


1) Copy The following code into the notepad.
2) Save this file as anything.bat
3) Then run this. After Running One Folder Created.
4) Again run that file. Then it will ask for locking the file as - "Are you sure u want to Lock the 
    folder(Y/N)". Then Press Y.
5) If U UnLock That Folder then again run that file. Then Type the password as "chetan". This is 
    default Password.
6) if U want to change the password then in code replace the name of me i.e. "chetan" by yours.

cls 
@ECHO OFF 
title Folder Locker 
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK 
if NOT EXIST Locker goto MDLOCKER 
:CONFIRM 
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 Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 
echo Folder locked 
goto End 
:UNLOCK 
echo Enter password to Unlock folder 
set/p "pass=>" 
if NOT %pass%==chetan goto FAIL 
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker 
echo Folder Unlocked successfully 
goto End 
:FAIL 
echo Invalid password 
goto end 
:MDLOCKER 
md Locker 
echo Locker created successfully 
goto End 
:End

No comments:

Post a Comment