Wednesday, December 1, 2010

Lock folder batch script

Just copy all code and paste it in notepad..
Save it as anything.bat

It will create a folder call "private" and there is place that you put your files

Quote:
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Anda Pasti Untuk Kunci Folder ini?(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 Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder dikunci
goto End
:UNLOCK
echo =====Folder Locked v.1=====
echo Masukkan Password Untuk Unlock Folder>
set/p "pass=>"
if NOT %pass%== abc123 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked Berjaya
goto End
:FAIL
echo Password Salah la Encik
goto end
:MDLOCKER
md Sulit
echo Folder Sulit Berjaya Dihasilkan
goto End
:End


0 comments:

Post a Comment