Home

Tuesday, 3 May 2011

lock folder tanpa menggunakan software

1.)Buat new .txt document(Notepad document)

2.)Paste code dbawah ni (semua tulisan warna merah) ni dlm .txt document


@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



4.)Tukar "Password" warna merah 2 ke password yg korang suke

5.)Tukar "Rush" warna biru 2 ke folde yg korang suke

6.)Save as: Ikut sukelah nk letak ape pun janji .bat belakang (txt to bat)

7.)Buka .bat file

8.)Pastu kuar folder yg buat tadi

9.)Tekan sekali lag kuar = Are you sure you want to lock the folder tekan Y utk Ya dan N utk tidak

10.) Selamat berjaya

No comments:

Post a Comment