Kali ini saya akan tunjukkan cara bagaimana untuk mengunci folder anda daripada dibuka oleh orang lain.. Hehe...
Caranya...
1. Buka notepad anda. Start--->> All Program--->> Accessories--->> Notepad
2. Copy Paste Skrip yang ini :
@ECHO OFF
if EXIST "MyFilesLocked" goto UNLOCK
if NOT EXIST MyFiles goto MDMYFILES
echo Mau Kunci Folder MyFiles ??(Y/N)
set /p "pilihan=>"
if %pilihan%==y goto LOCK
if not %pilihan%==y goto END
:LOCK
ren "MyFiles" MyFilesLocked
attrib +h +s "MyFilesLocked"
cacls "MyFilesLocked" /p everyone:n /e
cls
echo Folder MyFiles sudah terkunci...
pause
goto End
:UNLOCK
echo Mau Buka Folder MyFiles, Masukan Password lalu tekan Enter...
set/p "pass=>"
if NOT %pass%== ligong goto FAIL
cacls "MyFilesLocked" /p everyone:f /e
attrib -h -s "MyFilesLocked"
ren "MyFilesLocked" MyFiles
cls
echo Folder MyFiles Sudah terbuka...
pause
goto End
:FAIL
echo Password Salah !!!
pause
goto end
:MDMYFILES
md MyFiles
echo Folder MyFiles sudah dibuat
pause
:END
end
3. Lepas tu Save As (apa-apa jak namanya..) Contoh *ligong.bat (bat tu mesti ada ah..) dan kemudian yang type tu pilih All Files.. Siap sudah tu..
4. Lepas tu double klik file tadi terus keluar "myfiles" nah disinilah tempat menyimpan barang2 yang mahu disimpan tu..
oh ya lupa bagitau password untuk contoh tu ialah ligongjadi yang saya kasih kaler tu nanti kawan2 ubahlah sendiri password tu di Notepad yang dibuka tu..
Klaau macam nda jadi tanya saja ah..
Selamat Mencuba..