Tsiku ndi tsiku, wogwiritsa ntchito pa kompyuta akugwira ntchito zosiyanasiyana ndi mafayilo, mapulogalamu ndi mapulogalamu. Ena amayenera kuchita zinthu zofanana zomwe amatha kutenga nthawi yambiri. Koma musaiwale kuti tili ndi makompyuta amphamvu omwe, ndi timu yoyenera, amatha kuchita zonse mwaokha.
Njira yoyamba yodzigwiritsira ntchito iliyonse ndiyo kupanga fayilo ndikulumikiza .BAT, omwe amavomereza kuti "batch file". Iyi ndi fayilo yosavuta yochitidwa yomwe imapanga zochita zowonongeka pa kuyambika, kenako imatseka, kuyembekezera kuyambanso kutsogolo (ngati ikugwiritsiranso ntchito). Wogwiritsa ntchito ndi malamulo apadera akukhazikitsa ndondomeko ndi chiwerengero cha ntchito zomwe fayilo ya batch iyenera kuchita pambuyo poyambitsa.
Mmene mungapangire "fayilo ya" batch muwindo la Windows 7
Pangani fayilo ili ndi aliyense wogwiritsa ntchito pa kompyuta yomwe ili ndi ufulu wokwanira kulenga ndi kusunga mafayilo. Powonjezera kuchita zovuta pang'ono - kutayidwa kwa "fayilo ya batch" kuyenera kuloledwa komanso wogwiritsira ntchito limodzi, ndi dongosolo lonse la opaleshoni (choletsedwa nthawi zina chimaperekedwa chifukwa cha chitetezo, chifukwa maofesi omwe sanagwiritsidwe ntchito satchulidwa nthawi zonse kuti achite ntchito zabwino).
Samalani! Musayambe kuthamanga mafayilo a .BAT akumasulidwa kuchokera kuzinthu zosadziwika kapena zokayikira pa kompyuta yanu, kapena kugwiritsa ntchito chikhomo chimene simukudziwa kuti mukupanga fayilo yoteroyo. Maofesi owonongeka a mtundu uwu akhoza kulemba, kutchula kapena kuchotsa mafayilo, komanso kupanga mawonekedwe onse.
Njira 1: Gwiritsani ntchito mpukutu wolemba mabuku wa Notepad ++.
Notepad ++ pulogalamuyi ikufanana ndi Zowonjezera Zowonongeka m'dongosolo la ntchito la Windows, moposa kwambiri mu chiwerengero komanso mwatsatanetsatane.
- Fayilo ikhoza kulengedwa pa disk iliyonse kapena foda. Mwachitsanzo, pulogalamuyi idzagwiritsidwa ntchito. Mu malo aulere, dinani pakanja lamanja la mbewa, sungani chithunzithunzi pamutuwu "Pangani"mu bokosi lakutsikira kumbali, dinani batani lamanzere "Text Document"
- Fayilo ya malemba idzawonekera padesi, yomwe ndi yabwino kuitanitsa monga zotsatira zidzatchedwa batch wathu fayilo. Dzina lake litatanthauzidwa, dinani pa chikalata ndi batani lamanzere, ndipo mu menyu yachidule musankhe chinthucho "Sinthani ndi Notepad ++". Fayilo yomwe tilenga idzatsegulidwa mu mkonzi wapamwamba.
- Ntchito yododometsa yomwe lamulo lidzayankhidwa ndi lofunika kwambiri. Kutsitsa kosasintha ndi ANSI, yomwe imayenera kusinthidwa ndi OEM 866. Mu mutu wa pulogalamu, dinani pa batani "Makalata", dinani batani ofanana mumasamba otsika, kenako sankhani chinthucho "Cyrillic" ndipo dinani "OEM 866". Monga chitsimikizo cha kusintha kwa encoding, cholowa chofanana chidzawonekera pazenera pansi pomwepo.
- Makhalidwe omwe mwawapeza pa intaneti kapena mukudzilembera nokha kuti muchite ntchito inayake, muyenera kungolemba ndikuyikapo pa chikalata chomwecho. Mu chitsanzo pansipa, lamulo la pulayimale lidzagwiritsidwa ntchito:
shutdown.exe -r -t 00
Mutangoyamba mafayilo a batchyi ayambanso kompyuta. Lamulo lokha limatanthauza kuyambiranso, ndipo chiwerengero cha 00 chimatanthauza kuchedwa kwa kuphedwa kwake mu masekondi (pakali pano, kulibe, ndiko kuti, kuyambiranso kudzachitidwa mwamsanga).
- Pamene lamulo lalembedwa m'munda, nthawi yofunikira kwambiri ikubwera - kusinthidwa kwa chizolowezi chokhala ndi malemba m'thunthu. Kuti muchite izi, muwindo la Notepad ++ kumtunda kumanzere, sankhani chinthucho "Foni"ndiye dinani Sungani Monga.
- Mawindo a Explorer adzawoneka, kukupatsani magawo awiri ofunika kupulumutsa - malo ndi dzina la fayilo palokha. Ngati tatsimikiza kale pamalo (Desktop adzaperekedwa mwachisawawa), ndiye kuti sitepe yotsiriza ili m'dzina. Kuchokera pa menyu otsika pansi, sankhani "Fayi yachigawo".
Kwa mawu kapena ndemanga yoyankhulidwa kale popanda malo adzawonjezeredwa "BAT", ndipo zidzakhala monga chithunzi pansipa.
- Pambuyo pakanikiza batani "Chabwino" Muzenera lapitayi, fayilo yatsopano idzawonekera pa desi, yomwe idzawoneka ngati bango loyera ndi magalimoto awiri.
Njira 2: Gwiritsani ntchito ndondomeko ya Notepad text editor.
Ali ndi mapulogalamu oyambirira, omwe ali okwanira kuti apange "fayilo ya batch" yosavuta kwambiri. Malangizo ndi ofanana ndi njira yapitayi, mapulogalamuwa amasiyana pang'ono ndi mawonekedwe.
- Pa kompyuta, dinani pang'onopang'ono kuti mutsegule chikalata cholembedwera kale - chimatsegula mu mzere wokhazikika.
- Lamulo limene mudagwiritsa ntchito poyamba, lembani ndi kuphatikizani mumunda wopanda kanthu wa mkonzi.
- Muwindo la editor pamwamba kumanzere, dinani pa batani. "Foni" - "Sungani Monga ...". Fayilo la Explorer lidzatsegulidwa, momwe muyenera kufotokozera komwe mungasunge fayilo, ndithudi. Palibe njira yofotokozera zofunikira zomwe zowonjezera pogwiritsira ntchito chinthucho mumasewera otsika, kotero muyenera kuwonjezera pa dzina "BAT" popanda ndemanga kuti ziwoneke ngati chithunzi pansipa.
Onse okonza ndiwopanga popanga mafayilo a batch. Buku lovomerezeka lili loyenera kwambiri pa zizindikiro zosavuta kugwiritsa ntchito malamulo osavuta, osagwirizana. Kuti mukhale ndi machitidwe ovuta kwambiri pa kompyuta, mafayilo apamwamba akufunika, omwe amawoneka mosavuta ndi mkonzi wapamwamba wa Notepad ++.
Tikulimbikitsidwa kuyendetsa fayilo ya .BAT monga woyang'anira kuti tipeĊµe mavuto ndi mwayi wopita kuntchito zina kapena zolemba. Chiwerengero cha magawo omwe akuyenera kukhazikitsidwa chimadalira kuvuta ndi cholinga cha ntchitoyo kuti ikhale yosinthika.