Kupanga fayilo ya .bat mu Windows 10

Pin
Send
Share
Send

BAT - mafayilo a batch omwe ali ndi malamulo azomwe azitsatira pazinthu zina mu Windows. Itha kuyambitsidwa kamodzi kapena kangapo kutengera zomwe zalembedwazo. Wosuta amatanthauzira zomwe zili mu "batch fayilo" payekha - mulimonse, ziyenera kukhala zolemba zomwe DOS ikuthandizira. Munkhaniyi, tiyang'ana kupanga fayilo yotereyi m'njira zosiyanasiyana.

Kupanga fayilo ya .bat mu Windows 10

Mu mtundu uliwonse wa Windows, mutha kupanga mafayilo a batch ndi kuwagwiritsa ntchito kuti mugwire ntchito ndi zolemba, zikalata kapena zambiri. Mapulogalamu a gulu lachitatu safunikira izi, chifukwa Windows iyenso imapereka zonse zomwe zingatheke pa izi.

Musamale mukamayesa kupanga BAT ndi yosadziwika komanso yosamveka kwa inu. Mafayilo ngati amenewa amatha kuvulaza PC yanu ndikuyendetsa kachilombo, a sireware kapena owombelera pakompyuta yanu. Ngati simukumvetsetsa zomwe malamulo ake amakhala, muyenera kupeza tanthauzo lake.

Njira 1: Zolemba

Kudzera mwa ntchito yakale Notepad mutha kupanga ndi kutulutsa BAT mosavuta ndi malamulo ofunikira.

Njira 1: Kukhazikitsa Notepad

Njira iyi ndi yofala kwambiri, chifukwa chake lingalirani kaye.

  1. Kupyola "Yambani" yendetsa omwe adamangidwa m'mawindo Notepad.
  2. Lowetsani mizere yofunika, kuti muwone kulondola kwawo.
  3. Dinani Fayilo > Sungani Monga.
  4. Choyamba, sankhani chikwatu komwe fayilo ikasungidwa m'munda "Fayilo dzina" lembani dzina loyenerera m'malo mwa asterisk, ndikusintha kuwonjezera pambuyo pa kadontho kuti musinthe kuchokera .txt pa .bat. M'munda Mtundu wa Fayilo kusankha njira "Mafayilo onse" ndikudina "Sungani".
  5. Ngati malembawo ali ndi zilembo zaku Russia, kuwerengetsa zomwe mukupanga fayilo kuyenera kukhala ANSI. Kupanda kutero, mupeza lemba losawerengeka pa Command Line m'malo mwake.
  6. Fayilo ya batch imatha kuyendetsedwa ngati fayilo yanthawi zonse. Ngati zomwe zilibe mulibe kulumikizana ndi wosuta, mzerewo udzawonetsedwa. Kupanda kutero, zenera lake liyamba ndi mafunso kapena zochita zina zofuna yankho kuchokera kwa wogwiritsa ntchito.

Njira Yachiwiri: Zosankha

  1. Mutha kutsegulanso chikwatu komwe mukufuna kupulumutsa fayilo, dinani kumanja pamalo opanda kanthu ,ilozerani ku Pangani ndikusankha pamndandanda "Zolemba".
  2. Apatseni dzina lomwe mukufuna ndikusintha kuwonjezera potsatira dontho .txt pa .bat.
  3. Mosalephera, chenjezo lokhudza kusintha fayilo liziwoneka. Gwirizanani naye.
  4. Dinani pa fayilo ya RMB ndikusankha "Sinthani".
  5. Fayilo imatsegulidwa mu Notepad yopanda kanthu, ndipo mutha kudzaza mwakufuna kwanu.
  6. Anamaliza "Yambani" > "Sungani" sinthani zonse. Mutha kugwiritsa ntchito njira yachidule yokhala ndi cholinga chomwecho. Ctrl + S.

Ngati Notepad ++ yaikidwa pakompyuta yanu, ndi bwino kuigwiritsa ntchito. Izi zikuwunikira syntax, ndikupangitsa kuti ikhale yosavuta kugwira ntchito ndikupanga malamulo. Pamwambapa wapamwamba, ndikotheka kusankha kusinthidwa ndi thandizo la Cyrillic ("Encodings" > Chisililiki > OEM 866), popeza ANSI wamba ya ena ikadalinso kuwonetsa krakozyabry mmalo mwa zilembo zabwinobwino zomwe zidalowetsedwa pamangidwe a Russia.

Njira 2: Mzere wa Lamulo

Kupyola kudzera pa kutonthoza, popanda mavuto, mutha kupanga BAT yopanda kanthu kapena yodzaza, yomwe imayambitsidwa pambuyo pake.

  1. Tsegulani lamulo la Command mu njira iliyonse yabwino, mwachitsanzo, kudzera "Yambani"polowetsa dzina lake pakusaka.
  2. Lowani lamulokopani con c: lumpics_ru.batpati kukopera con - gulu lomwe lipange zolemba, c: - chikwatu kuti tisunge fayilo, lumpics_ru ndi dzina la fayilo, ndipo .bat - Kufutukula zolembedwa.
  3. Mudzaona kuti khumbu lonyinyirika lasamukira kumzere womwe uli pansipa - apa mutha kuyika zolemba. Mutha kusunga fayilo yopanda kanthu, ndipo kuti muphunzire momwe mungachitire izi, pitani pagawo lina. Komabe, nthawi zambiri ogwiritsa ntchito amalowetsa malamulo oyenera pamenepo.

    Ngati mumalemba pamanja, pitani pamzere uliwonse watsopano ndi kuphatikiza kiyi Ctrl + Lowani. Ngati muli ndi malamulo okonzedweratu ndikukopera, dinani kumanja pomwepo ndipo pazomwe zili patsamba clip zilembedwe basi.

  4. Gwiritsani ntchito kiyi kuti musunge fayilo Ctrl + Z ndikudina Lowani. Kudina kwawo kuwonetsedwa muzowonetsera monga tikuwonera pazenera pansipa - izi ndizabwinobwino. Mu fayilo ya batch palokha zilembo izi sizimawonekera.
  5. Ngati zonse zidayenda bwino, muwona zidziwitso mu Command Prompt.
  6. Kuti muwonetsetse kulondola kwa fayilo yomwe idapangidwa, yendetsani monga fayilo ina iliyonse yomwe ingakwaniritsidwe.

Musaiwale kuti nthawi iliyonse mungasinthe mafayilo a batch ndikudina kumanja ndikusankha "Sinthani", ndi kupulumutsa Ctrl + S.

Pin
Send
Share
Send