Filename | Buat folder Lock sendiri |
Permission | rw-r--r-- |
Author | admin |
Date and Time | 18.00 |
Label | |
Action |
ketikkan ini
clsSimpan dengan nama apa saja yang penting kasih extensi .bat
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo decast said are you sure 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%==@decastle 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
Untuk eksekusinya, jalankan file kunci.bat, lalu akan muncul sebuah folder, masukkan file-file yang ingin dikunci. setelah itu jalankan kembali file kunci.bat, lalu muncul file bat dengan pertanyaan dika said are you sure want to lock the folder (Y/N), ketik y [enter], maka file anda telah terkunci dan tersembunyi
0 komentar:
Posting Komentar