အရင္ ဆုံး notepad ကုိ ဖြင္႕လုိက္ပါေနာ္ ၿပီးရင္ ကၽြန္ေတာ္ေပးမဲ႕ comment ေလးကုိ copy လုပ္ေပးၿပီး
notepad မွာ paste လုပ္လုိက္ပါ ၿပီးရင္ save ေပးပါ save name as ဆုိတဲ႕ ေနရာမွာ Lock.bat ဆုိ႕ တဲ႕ နာမည္နဲ႕ save ေပးပါေနာ္
(၁) သူငယ္ခ်င္းတုိ႕ save ထား တဲ႕ notepad ေလးကုိ desktop ေပၚ တင္လုိက္ပါ
(၂) ခဏက တင္လုိက္တဲ႕ bat file ေလး run လုိက္ပါ
(၃) desktop ေပၚမွာ private ဆုိတဲ႕ floder ေလ ေပၚလာတာ ေတြ႕ရမွာပါ
(၄) private တုိ file ထဲ မွာ ကုိယ္ lock ခ်ထား ခ်င္တဲ႕ data ေတြ ကုိ ထဲ႕လုိက္ပါ
(၅) ေနာက္ တစ္ဆင္႕ အေနနဲ႕ကေတာ႕ example.bat ဆုိ တဲ႕ file ကုိ ထပ္ၿပီး run ေပးပါ
You can set Password as you like. Don’t use my name “ZARNI” :P :P :P(Y/N) ဆုိတာေပၚလာပါလိမ္႕မယ္ ဗ်ာ လုိခ်င္တဲ႕ password ကုိ စိတ္တုိင္းၾကေပးလုိက္ေပါ႔ေနာ္
ၿပီးရင္ Type your password to unlock folder ဆုိတာေပၚလာပါလိမ္႕မယ္ Y ကုိ ရုိက္ၿပီး enter ေခါက္လုိက္ပါ
private ဆုိတဲ႕ file ေလး ေၿပာက္သြားတာ ေတြ ရပါလိမ္႕ၿမင္ရပါမယ္
ကုိယ္ ဖြက္ထားတဲ႕ flie ေတြ ၿပန္ေဖာ္ ခ်င္တယ္ဆုိရင္ desktop ေပၚ တင္ထား တဲ႕ Lock.bat ဆုိတဲ႕ bat file ေလးကုိ run လုိက္ပါ
Enter Password to Unlock Folder ဆုိတာ ေပၚလာပါလိမ္႕မည္ သူငယ္ခ်င္းတုိ႕ ခဏက ေပးထားတဲ႕ password ကုိ ထဲ႕ ၿပီး enter ၿပန္ေခါက္လုိက္ပါ
private ဆုိတဲ႕ file ေလးေပၚလာပါလိမ္႕မည္ ခင္မ်ား စမ္းၾကည္႕ ခ်င္တယ္ဆုိ ရင္ ေအာက္မွာ copy ကူး သြားနုိင္တယ္
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 You can set Password as you like. Don’t use my name “ZARNI” :P :P :P(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 locked
goto End
:UNLOCK
echo Type your password to unlock folder
set/p "pass=>"
if NOT %pass%== password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
(၁) သူငယ္ခ်င္းတုိ႕ save ထား တဲ႕ notepad ေလးကုိ desktop ေပၚ တင္လုိက္ပါ
(၂) ခဏက တင္လုိက္တဲ႕ bat file ေလး run လုိက္ပါ
(၃) desktop ေပၚမွာ private ဆုိတဲ႕ floder ေလ ေပၚလာတာ ေတြ႕ရမွာပါ
(၄) private တုိ file ထဲ မွာ ကုိယ္ lock ခ်ထား ခ်င္တဲ႕ data ေတြ ကုိ ထဲ႕လုိက္ပါ
(၅) ေနာက္ တစ္ဆင္႕ အေနနဲ႕ကေတာ႕ example.bat ဆုိ တဲ႕ file ကုိ ထပ္ၿပီး run ေပးပါ
You can set Password as you like. Don’t use my name “ZARNI” :P :P :P(Y/N) ဆုိတာေပၚလာပါလိမ္႕မယ္ ဗ်ာ လုိခ်င္တဲ႕ password ကုိ စိတ္တုိင္းၾကေပးလုိက္ေပါ႔ေနာ္
ၿပီးရင္ Type your password to unlock folder ဆုိတာေပၚလာပါလိမ္႕မယ္ Y ကုိ ရုိက္ၿပီး enter ေခါက္လုိက္ပါ
private ဆုိတဲ႕ file ေလး ေၿပာက္သြားတာ ေတြ ရပါလိမ္႕ၿမင္ရပါမယ္
ကုိယ္ ဖြက္ထားတဲ႕ flie ေတြ ၿပန္ေဖာ္ ခ်င္တယ္ဆုိရင္ desktop ေပၚ တင္ထား တဲ႕ Lock.bat ဆုိတဲ႕ bat file ေလးကုိ run လုိက္ပါ
Enter Password to Unlock Folder ဆုိတာ ေပၚလာပါလိမ္႕မည္ သူငယ္ခ်င္းတုိ႕ ခဏက ေပးထားတဲ႕ password ကုိ ထဲ႕ ၿပီး enter ၿပန္ေခါက္လုိက္ပါ
private ဆုိတဲ႕ file ေလးေပၚလာပါလိမ္႕မည္ ခင္မ်ား စမ္းၾကည္႕ ခ်င္တယ္ဆုိ ရင္ ေအာက္မွာ copy ကူး သြားနုိင္တယ္
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 You can set Password as you like. Don’t use my name “ZARNI” :P :P :P(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 locked
goto End
:UNLOCK
echo Type your password to unlock folder
set/p "pass=>"
if NOT %pass%== password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
==================================
ကၽြန္ေတာ့္ခ်စ္ညီေလး AC Vs DC ရဲ႕ ကေလးကိုျပန္လည္ မွ်ေ၀ေပးတာျဖစ္ပါတယ္။
ဗြီဒီယိုက်ဴတိုရီရယ္မွာလည္းအေသးစိတ္ေလ့လာႏုိင္ပါတယ္။
0 comments:
Post a Comment