Tips komputer kali ini adalah bagaimana menyembunyikan atau mengunci folder pribadi dengan menggunakan notepad. Biasanya untuk mengunci atau menyembunyikan folder itudengan menggunakans uatu software. Namun notepad juga bisa digunakan untuk mengunci folder. Caranyac ukup mudah, andahanya membuat sebuah kode script pada notepad seperti di bawahini :
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=>"
if NOT %pass%==type your password heregoto 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 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=>"
if NOT %pass%==type your password heregoto 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
- Pada tulisan "Are you sure u want to Lock the folder" anda bisa mengganti dengan kalimat lain yang intinya menanyakan suatu peringatan untuk mengunciya atau tidak. Juga padat ulisan "type your password here", masukkanlah dengan password sesukaa nda, password ini lah nantinya untuk membuka kembali folder yang terkunci/tersembunyi.
- Setelah anda mengcopy kode script di atas, kemudian save dengan nama file Folder Lock.Bat atau bisa juga nama lain asalkan ekstensinya .Bat bukan .txt
- Simpanlah di mana saja anda suka, kemudian buka kembali filenya (dobelklik) dan dengan sendirinya akan muncul sebuah folder bernama Locker.
- Pindahkanlah file atau data yang ingin dikunci atau disembunyikan kedalam folder Locker tadi.
- Setelah anda memasukkan file atau data yang ingin disembunyikan, silahkan untuk dobel klik file FolderLock.Bat maka akan muncul kotak dialog seperti di bawah ini :
- Ketik Y lalu enter, maka dengan otomatis folder Locker tadi akan hilang. Biasanya jugaakan berubah menjadi icon control panel. Ketik N jika ingin membatalkan.
- Untuk mengembalikannya lagi, buka kembali file FolderLock.Bat tadi kemudian masukkan password anda, lalu enter. (file batch FolderLock.Bat dan folder Locker harus satu directory).
Tidak ada komentar:
Posting Komentar