- Buka Start -> All Programs -> Accessories -> Notepad
- Copy dan paste kode berikut ke notepad
cls
color 1F
@ECHO OFF
cls
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 want to lock the folder (Y/N)
echo.
set/p "cho="
if %cho%==Y goto LOCK
echo.
if %cho%==y goto LOCK
echo.
if %cho%==n goto END
echo.
if %cho%==N goto END
echo.
echo Invalid choice
echo.
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
echo.
pause
goto End
:UNLOCK
echo Enter password to unlock folder
echo.
set/p "pass="
if NOT %pass%==123456789 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo.
echo Folder unlocked successfully
echo.
pause
goto End
:FAIL
echo.
echo Invalid password
echo.
pause
goto end
:MDLOCKER
md Locker
echo Locker folder created successfully
echo.
pause
goto End
:End - Kemudian simpan file notepad tersebut dengan nama Locker.bat
- Tutup dan kemudian buka lagi file tersebut, dan akan tertera perintah untuk memasukkan password (Enter Password) untuk membuka kunci folder
- Ketikkan kode password Anda
- Klik lagi, dan akan tertampil perintah "Do you want to lock the file Y/N".
- Ketikkan “Y” dan tekan Enter.
Ganti "123456789" dengan passwordmu
Sumber : http://roni-pascal.blogspot.com/2009/05/cara-proteksi-folder-tanpa-software.html
Share
Comments
0 comments to "Cara Proteksi Folder Tanpa Software"
Post a Comment