Friday, 4 December 2009

Folder locker

I you  want to make a folder locker 
Write the following codes on notepad 



cls
@ECHO OFF
title Folder AshiQue
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST AshiQue goto MDAshiQue
:CONFIRM
echo Are you sure and 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 AshiQue "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%==AshiQue goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" AshiQue
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDAshiQue
md AshiQue
echo AshiQue created successfully
goto End
:End




Now save it as AshiQue.bat not as .txt 

Then double click on it or Open it . 

 
 

0 comments:

ip Scaner