အားလုံးပဲ မဂၤလာပါခင္ဗ်ာ.. ဒီတစ္ခါ ကၽြန္ေတာ္ ေဖာ္ျပေပးမွာကေတာ့ Software မရွိဘဲနဲ႔ Folder ေတြကုိ Lock ခ်တဲ့နည္းလမ္းေလးပါ.။ အခ်ိဳ႕လည္း သိၿပီးသားျဖစ္ၾက ပါလိမ့္မယ္။ မသိၾကေသးသူမ်ားအတြက္ ေဖာ္ျပေပးျခင္းျဖစ္တဲ့အတြက္ သိၿပီးသူမ်ားက သီးခံၿပီး ဖတ္ရႈေပးၾကပါအုံး။ နားလည္တတ္ကၽြမ္း သူမ်ားအေနနဲ႕လည္း ဒီနည္းလမ္း ေလးကုိ ထပ္ၿပီး modify လုပ္မည္ဆုိပါကလည္း ႀကိဳဆုိလ်က္ပါခင္ဗ်ာ။ လက္ေတြ႕ စမ္းသပ္ၾကည့္ခ်င္သူမ်ား ေအာက္ကအဆင့္မ်ားအတုိင္း လုိက္ လုပ္ၾကည့္ၾကပါအုံး....
၁။ ေအာက္မွာေပးထားတဲ့ Code ေတြကုိ Copy လုပ္ၿပီး Notepad ထဲမွာ Paste လုပ္လုိက္ပါ။
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 here 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 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 here 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
၂။ အေပၚက Code ေတြထဲက type your passowrd here ဆုိတဲ့ေနရာမွာ မိမိအသုံးျပဳလုိတဲ့ password ကုိရုိက္ထည့္ေပးလုိက္ပါ။
၃။ ၿပီးလွ်င္ Notepad ကုိ Locker.bat အျဖစ္ File Name ေပးၿပီး ႀကိဳက္တဲ့ေနရာမွာ Save လုပ္လုိက္ပါ။
၃။ ၿပီးလွ်င္ Notepad ကုိ Locker.bat အျဖစ္ File Name ေပးၿပီး ႀကိဳက္တဲ့ေနရာမွာ Save လုပ္လုိက္ပါ။
၄။ အေပၚက Locker ဆုိတဲ့ bat ဖုိင္ေလးကုိ Double Click လုပ္လုိက္ပါ။
၅။ ေစာေစာက Code ထဲမွာ ရုိက္ထည့္ခဲ့တဲ့ Password ကုိရုိက္ထည့္ေပးလုိက္ပါ။
၆။ အေပၚကလုိ Locker ဆုိတဲ့ Folder အလြတ္တစ္ခုေပၚလာပါလိမ့္မယ္။ အဲဒီ Folder ထဲကုိ မိမိ Lock လုပ္ထားခ်င္တဲ့ Folder ေတြ၊ File ေတြကုိ ထည့္ထားလုိက္ပါ။ ၿပီးလွ်င္ Locker ဆုိတဲ့ bat ဖုိင္ေလးကုိ Double Click လုပ္ၿပီးျပန္ဖြင့္လုိက္ပါ။
၇။ Are you sure you want to lock the folder (Y/N) ဆုိတဲ့အတြက္ Yes (Y)ကုိရုိက္လုိက္ပါ။ ေစာေစာက မိမိရဲ႕ ဖုိင္ေတြထည့္ထားတဲ့ Folder ေလးေပ်ာက္သြား တာကုိ ေတြ႕ရပါလိမ့္မယ္။ အဲဒီ Folder ေလး ျပန္ေဖာ္ခ်င္တယ္ဆုိရင္ေတာ့ bat ဖုိင္ေလးကို Double Click လုပ္ဖြင့္ၿပီး Password ထည့္ေပးလုိက္ပါ။ အားလုံးအဆင္ေျပ ၾကပါေစခင္ဗ်ာ..
0 comments:
Post a Comment
သင့္အျမင္ေလးသိခ်င္တယ္