Untuk menghindarkan folder anda dari para tangan jahil atau pencuri, anda bisa memakai cara ini untuk mengunci folder atau file yang anda miliki.
Ikuti langkah dibawah ini :
- Buka notepad (menu start > all programs > accessories > notepad).
- Copy kode dibawah ini.
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, you 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 Input your password
set/p "pass=>"
if NOT %pass%==ganti dengan password-mu 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
@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, you 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 Input your password
set/p "pass=>"
if NOT %pass%==ganti dengan password-mu 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
- Paste kode tadi di notepad. Lalu simpan (menu file > save as).
- nama file-nya harus berekstensi .bat, misal : kunci.bat (jangan menyimpan file dengan ekstensi selain itu).
- save as type : All Files.
cara menggunakan :
- Buka file yang anda simpan tadi (kunci.bat).
- Secara otomatis akan terbuat sebuah folder bernama "locker".
- Letakkan file yang ingin anda lindungi di folder locker tadi.
- klik dua kali kunci.bat tekan y untuk mengunci folder anda.
- Untuk membuka kembali folder anda, klik dua kali kunci.bat, lalu masukkan password anda (sebelum itu anda ganti terlebih dahulu password anda dengan cara mengganti tulisan "ganti dengan password-mu" dengan password anda).