Batch Programming

Posted by Black Magic | Posted in , | Posted on 7:33 AM

ကၽြန္ေတာ္ဒီ Post ကိုေရးရင္ေကာင္းမလားလို႔ခနခနစဥ္းစားတယ္.. ဘာလို႔လည္းဆိုေတာ့ ကၽြန္ေတာ္ကိုယ္တိုင္က အခုမွေလ့လာဆဲ ဘာမွမတက္တဲ့သူတစ္ေယာက္ဆိုေတာ့ ဘာမွမသိတဲ့သူကဆရာလုပ္ေနသလိုၿဖစ္မွာစိုးလို႔ပါ... ဒါေပမယ့္ အားလံုးကို သိေစခ်င္တဲ့ဆႏၵေၾကာင့္ ေရးလိုက္ပါတယ္ခင္ဗ်ာ . . .
အဲဒီေတာ့ ကၽြန္ေတာ္သိသမွ်ေလးေတြကို အာလံုးအတြက္ မွ်ေ၀ေပးတယ္လို႔သေဘာထားေပါ့ဗ်ာ....

အခုဟာက Repating Msg Box ေလးလုပ္ၾကည္႔ရေအာင္ဗ်ာ...
အဲဒါေတြမေၿပာခင္ Batch File ဆိုတာ ဘာလည္းဆိုတာ ေၿပာၿပမယ္ဗ်ာ... Batch File ဆိုတာ CMD Command ေတြကို ေပါင္းေရးတဲ့ Program တစ္ခုပါပဲ
ဥပမာ။     ။ C:\ ထဲက A.txt ဆိုတဲ့ဖိုင္ရယ္ C:\Folder\ ထဲက B.txt ဆိုတဲ့ဖိုင္ႏွစ္ခုကို D:\ ထဲမွာေကာ္ပီကူးခ်င္ရင္ Cmd မွာ Copy C:\A.txt D: လို႔တစ္ခါ C:\Folder\B.txt D: လို႔တစ္ခါ ႏွစ္ခါရိုက္ရပါမယ္... အဲလိုမ်ိဳး Command ႏွစ္ခုကို File တစ္ဖိုင္ထဲမွာၾကိဳေရးၿပီး အဲဒီFile ကိုႏွိပ္လိုက္တာနဲ႔ ႏွစ္ခုလံုးလုပ္ၿပီးသားၿဖစ္ေအာင္လုပ္လိုက္တာကို Batch File ေရးတယ္လို႔ေခၚပါတယ္
Batch File အတြက္ Command က ၇ ခုပဲရွိပါတယ္... echo,pause,rem,goto,call,if,for ဒါပါပဲ...အဲဒီထဲကမွ For ကိုေတာ့ပယ္ထားမယ္ဗ်ာ က်န္တာက cmd command ေတြပါပဲ

ကဲစမယ္ဗ်ာ
note pad ေလးကိုဖြင့္ၿပီးေတာ့ ေအာက္ကဟာေတြကို ကူးထည့္လိုက္ပါ


echo off
:Begin
msg * Hi
msg * Are you having fun?
msg * I am!
msg * The admin of BlackMagic

msg * since you are stuck reading
msg * I am gonna tell you
msg * Batch Programming series
msg * Did you learn anything new
msg * and are you enjoying it
msg * if yes then do subscribe
msg *
to learn hacking
msg * the fastest growing ethical hacking site
msg * on net
msg * and you know what
msg * you have been P-w-n-e-d with a capital “P”


Message.bat ဆိုၿပီးေတာ့ Save လိုက္ပါ ...  ၿပီးရင္ဖြင့္ၾကည့္လိုက္ပါ
မတ္စိ ေတြေတာက္ေလွ်က္ေပၚလာပါလိမ့္မယ္.. နားလည္မယ္ထင္ပါတယ္   
msg * ဒီေနရာမွာကိုယ္ေရးခ်င္တာေရး
ကၽြန္ေတာ္အေပၚမွာ :Begin နဲ႔စေပးထားပါတယ္... ေအာက္ဆံုးမွာ Goto Begin ဆိုၿပီးထည့္လိုက္ရင္ Round ေနပါလိမ့္မယ္ ... ၿပီးမွာကိုမဟုတ္ေတာ့ပါဘူး....ပိတ္မယ္ဆိုေနာက္က Window ကိုပိတ္လိုက္မွပဲရေတာ့မယ္..... Virus ကိုလည္းဒီနည္းနဲ႔ေရးလို႔ရပါတယ္...
ကဲ..ဒီေန႔ေတာ့ေတာ္ၿပီဗ်ာ...ေတာ္ၾကာအီသြားလိမ့္မယ္... တကယ္လို႔နားမလည္ဘူးဆိုရင္ ကၽြန္ေတာ္ေရးတာအသံုးမက်လို႔ၿဖစ္ပါလိမ့္မယ္... ကၽြန္ေတာ္ကိုယ္တုိင္လည္း ဘာမွမတတ္ေသးတဲ့အတြက္ အမွားပါရင္ခြင့္လႊတ္ပါလို႔ေတာင္းပန္ခ်င္ပါတယ္ဗ်ာ...။ေလ့လာခ်င္တယ္ဆိုရင္ကၽြန္ေတာ့ဆီမွာ Bat file နဲ႔ပါတ္သက္တဲ့ ၿမန္မာလိုစာအုပ္ေတြရွိပါတယ္ လိုခ်င္တယ္ဆိုရင္ Cbox မွာေတာင္းလို႔ရပါတယ္ခင္ဗ်ာ




Comments (0)

လိုခ်င္တာရွိရင္ေအာ္ခဲ့ေနာ္ !

Don't Forget to Like & Follow

Daily Email Updates
Subscribe to Get Latest Updates Free


Check IP

IP
ask4linksask4pc

ကၽြန္ေတာ့ Blog မွာ ဘာကို အဓိကတင္ေစခ်င္လည္း?

ယေန႔ေငြလဲႏႈန္း

DMCA.com Protection

Powered By:

Black Magic © 2013 - All Rights Reserved.