first of all... korang open notepad... tau x notepad kt mn?? ak bg cara paling susah nk dapatkn notepad tuh.. huhu.. Start-> run-> Notepad.exe.. sure kuar notepad... hehe... ok.. lepastuh korang copy semua nih termasukla bintang2 nih (*****)..
**********************************************************
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=password:"
if NOT %pass%== YOURPASSWORD 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
alrite.. then korang changela password nyer dengan password korang...
if NOT %pass%== YOURPASSWORD goto FAIL
then.. savekan notepad tuh sebagai protect.bat Masa korang save tuh jangan lupa pilih file type as save all type. then dia akan jadi icon n icon tuh dia tulis protect. korang double click bnd tuh n nnt korang akan nampak 1 folder baru yang akan muncul.. korang masukkn semua file yang korang nk hidekan.. then double click protect icon td untuk sorokkn semula folder baru tuh td....
dan.. siap... hehe.. klo korang nk kan balik folder tuh... korang double clikc protect td.. n masukkn password... so.. korang nyer folder tuh akan muncul la semula...
p/s: korang sorokkn la protect file td... orang leh cek gk klo dia tau pasal nih.. hehe
0 comments:
Post a Comment