Uyakha kanjani ifayela le-.BAT kuWindows 7

Pin
Send
Share
Send

Nsuku zonke, umsebenzisi wenza inamba enkulu yemisebenzi ehlukahlukene ngamafayela, izinsizakalo nezinhlelo kukhompyutha. Abanye kufanele benze izenzo ezilula ezifanayo ukuthi ngesandla zithatha isikhathi esibalulekile. Kodwa ungakhohlwa ukuthi sibhekene nomshini wekhompyutha onamandla, okuthi, ngomyalo ofanele, ukwazi ukwenza konke ngokwako.

Indlela yokuqala kunazo zonke yokusebenzisa noma yisiphi isenzo ukudala ifayili ngesandiso se-.BAT, esivame ukubizwa njengefayela le-batch. Leli ifayela elilula kakhulu elisebenzisekayo, lapho livulwa, lenza isenzo esinqunyelwe ngaphambili, bese livaleka, lilinde ukwethulwa okulandelayo (uma kungenzeka kabusha). Esebenzisa imiyalo ekhethekile, umsebenzisi usetha ukulandelana nenombolo yokusebenza okufanele ifayili ye-batch isebenze ngemuva kokuqala.

Ungawakha kanjani "ifayili le-batch" ohlelweni olusebenzayo lweWindows 7

Leli fayela lingakhiwa noma imuphi umsebenzisi okwikhompyutha onamalungelo anele okwenza nokusindisa amafayela. Ekukhishweni kokubulawa, kuyinkimbinkimbi kakhulu - ukwenziwa kwe "fayili le-batch" kufanele kuvunyelwe kumsebenzisi oyedwa kanye nohlelo olusebenzayo luphela (ukuvinjelwa kwesinye isikhathi kubekelwa izizathu zokuphepha, ngoba amafayela angenakuphehlwa awakhelwe njalo ukwenza izinto ezinhle).

Qaphela! Ungalokothi usebenzise amafayela ngesandiso .BAT elandiwe kusuka kusisetshenziswa esingaziwa noma esisolisayo kukhompyutha yakho, noma sisebenzise ikhodi ongaqiniseki ngayo lapho wenza ifayili elinjalo. Amafayela anokwethenjwa alolu hlobo angabhala ngemfihlo, aqambe kabusha noma asuse amafayela, futhi afake zonke izingxenye.

Indlela yoku-1: usebenzisa umhleli wombhalo osezingeni eliphakeme i-Notepad ++

Uhlelo lwe-Notepad ++ iyi-analogue ye-Notepad ejwayelekile ohlelweni olusebenzayo lweWindows, idlula kakhulu inani layo futhi icashile izilungiselelo.

  1. Ifayela lingadalwa kunoma iyiphi idrayivu noma kufolda. Isibonelo, kuzosetshenziswa ideskithophu. Esihlalweni esingenalutho, qhafaza kwesokudla, jika phezulu Dala, ewindini elivele ohlangothini, chofoza kwesobunxele ukuze ukhethe "Umbhalo"
  2. Kuzovela ifayela lombhalo kudeskithophu, efiselekayo ukuqanjwa njengefayili lethu le-batch ekugcineni izobizwa. Ngemuva kokuthi igama selichazelwe yona, chofoza kwesobunxele kudokhumenti bese ukhetha into kumenyu yokuqukethwe "Hlela nge-Notepad ++". Ifayela esilidalile lizovula kumhleli osethuthukile.
  3. Indima yokufaka ikhodi lapho umyalo uzokwenziwa khona ibaluleke kakhulu. Ngokuzenzakalelayo, kusetshenziswa ukufakwa ekhodini kwe-ANSI, okumele kufakwe okunye esikhundleni se-OEM 866. Esihlokweni sezinhlelo, chofoza inkinobho "Okubhaliwe", chofoza inkinobho efanayo kumenyu eyehlayo, bese ukhetha Isi-Cyrus bese uqhafaza OEM 866. Njengokuqinisekisa koshintsho lokufaka ikhodi, ukungena okuhambisanayo kuzovela kufasitela elingezansi kwesokudla.
  4. Ikhodi osuvele uyitholile kwi-Intanethi noma uzibhalele yona ukwenza umsebenzi othize, udinga ukukopisha bese unamathisela kudokhumenti uqobo. Esibonelweni esingezansi, kuzosetshenziswa umyalo wokuqala:

    ukuvala.exe -r -t 00

    Ngemuva kokuqala leli fayela le-batch kuzoqala kabusha ikhompyutha. Umyalo uqobo usho ukuqala kabusha, futhi izinombolo 00 - ukubambezeleka kokusebenza kwayo ngemizuzwana (kuleli cala, akukho, okungukuthi, ukuqalwa kabusha kuzokwenziwa ngokushesha).

  5. Lapho umyalo ubhalwe endle, kufika umzuzu obaluleke kakhulu - ukuguqula idokhumenti elijwayelekile elinombhalo libe elenzekekayo. Ukuze wenze lokhu, ewindini le-Notepad ++ ngakwesokunxele phezulu, khetha Ifayelabese uqhafaza Gcina Njengo.
  6. Kuzovela iwindows elijwayelekile le-Explorer, likuvumela ukuthi usethe amapharamitha amabili asemqoka wokugcina - indawo negama lefayela uqobo. Uma ngabe sesinqume endaweni (ngokuzenzakalelayo kuzonikezwa i-Desktop), khona-ke isinyathelo sokugcina esikulelo gama. Ukusuka kumenyu eyehlayo, khetha "Ifayela le-Batch".

    Ezwini elisethwe ngaphambili noma umusho ngaphandle kwesikhala, kuzongezwa ".BAT", futhi kuzophuma njengasesikrinini esingezansi.

  7. Ngemuva kokuchofoza inkinobho KULUNGILE ewindini elidlule, kuzovela ifayela elisha kudeskithophu, elizobukeka njengonxantathu omhlophe onamagiya amabili.

Indlela 2: sebenzisa umhleli wombhalo ojwayelekile we-Notepad

Inezilungiselelo eziyisisekelo, ezanele ukudala "amafayela we-batch" alula. Ukufundiswa kufana ngokuphelele nendlela yangaphambilini, izinhlelo zihluka kancane nje esibonakalayo.

  1. Qhafaza kabili kudeskithophu ukuvula idokhumenti yombhalo eyenziwe ngaphambilini - izovula kusihleli esijwayelekile.
  2. Kopisha umyalo owusebenzise ngaphambili bese uwunamathisela enkambu yomhleli engenalutho.
  3. Ewindini lomhleli ngaphezulu kwesokunxele, chofoza inkinobho Ifayela - "Gcina Njengo ...". Kuvulwa iwindi le-Explorer, lapho udinga ukucacisa indawo ukuze ugcine ifayili lokugcina. Ayikho indlela yokusetha isandiso esidingekayo usebenzisa into kumenyu eyehlayo, ngakho-ke udinga ukungeza igama ".BAT" ngaphandle kwezicaphuni ukwenza kubukeke njengesithonjana esingezansi.

Bobabili abahleli benza umsebenzi omuhle kakhulu wokudala amafayela we-batch. Incwajana ejwayelekile ilungele amakhodi alula asebenzisa imiyalo elula yezinga elilodwa. Ngokuzenzakalela okungathi sína kwezinqubo kwikhompyutha, amafayili ebhendi athuthukile ayadingeka, adalwe kalula ngumhleli ophambili we-Notepad ++.

Kunconywa ukuthi usebenzise ifayela le-.BAT njengomlawuli ukuze kungabikho zinkinga ngamazinga wokufinyelela kwemisebenzi ethile noma amadokhumenti. Inani lamapharamitha okufanele asethelwe lincike ekuthini yinkimbinkimbi nenhloso yomsebenzi odinga ukuzenzakalelayo.

Pin
Send
Share
Send