Khamis, 28 April 2011

Lock Folder Without Any Software

Salah Satu Bergune Dari Saya Utk Korang

1.) Mula2 buat New Text Document (Notepad)
2.) Then paste code ni dlm notepad tadi

@ECHO OFF
title Type Password To Unlock Folder
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Rush goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder? (Yes/No) or (Y/N)
set/p "cho=>"
if %cho%==YES goto LOCK
if %cho%==NO goto LOCK
if %cho%==no goto LOCK
if %cho%==yes goto LOCK
if %cho%==No goto LOCK
if %cho%==Yes goto LOCK
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid Choice (Y/N) or (Yes/No) Not Case Sensitive.
goto CONFIRM
:LOCK
ren Rush "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%==Password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Rush
echo Folder Unlocked Successfully
goto End
:FAIL
echo Incorrect Password
Goto :UNLOCK
:MDLOCKER
md Rush
echo Rush Folder Created successfully
goto End
:End

3.) Tukar Password kepada password yg korang suke
4.) Tukar Rush kepada folder yang korang suke
5.) Save as namelah ape2 pun janji .bat (txt to bat)
6.) Buka .bat
7.) Pastu kuar folder yg buat tadi 
8.) Tekan sekali lagi kuar Are you sure you want to lock the folder? (Yes/No) or (Y/N)

0 comments:

Catat Ulasan