U ka etsa faele ea bat joang ho Windows

Pin
Send
Share
Send

Khafetsa, malebela a liketso tse itseng le ho lokisoa ho Windows 10, 8, le Windows 7 li kenyelletsa mehato e kang: "etsa file ea .bat e nang le litaba tse latelang ebe u e tsamaisa." Leha ho le joalo, mosebelisi oa novice ha a tsebe kamehla ho etsa sena le hore na file e joalo ke eng.

Buka ena e fana ka lintlha tse qaqileng tsa ho etsa file ea batch, e e tsamaise, le tlhaiso-leseling e tlatselletsang molemong oa sehlooho sena.

Ho theha faele ea .bat u sebelisa notepad

Mokhoa oa pele le o bonolo oa ho etsa faele ea bat ke ho sebelisa sisteme e tloaelehileng ea Notepad e fumanehang liphetolelong tsohle tsa hona joale tsa Windows.

Mehato ea ho theha e tla ba ka tsela e latelang

  1. Launch Notepad (e fumanehang ka har'a Mananeo - Lisebelisoa, ho Windows 10 ho potlakile ho qala ka ho batla ka har'a bartharo ea mesebetsi, haeba notepad e le sieo ho menu ea Qalo, u ka e qala ho C: Windows notepad.exe).
  2. Kenya khoutu ea faele ea hau ea bat ka har'a bukana ea mohlala (mohlala, e kopitsa ho tloha kae kapa kae, kapa u ngole tsa hau, ka litaelo tse ling - ho ea pele litaelong).
  3. Ho menu ea notepad, khetha "File" - "Boloka", khetha sebaka ho boloka file, hlakisa lebitso la faele le keketseho .bat, mme, lebaleng la "Type Type", beha "All Files".
  4. Tobetsa konopo ea "Boloka".

Tlhokomeliso: haeba faele e sa bolokoa sebakeng se boletsoeng, ka mohlala, ho khanna C, ka molaetsa "Ha u na tumello ea ho boloka lifaele sebakeng sena", e boloke "foldareng ea" Litokomane "kapa komporong, ebe u kopitsa sebakeng se lakatsehang ( sesosa sa bothata ke hore ho Windows 10 o hloka litokelo tsa motsamaisi ho ngolla lifoldara tse ling, 'me kaha notepad ha e-so qaleloe e le motsamaisi, e ke ke ea boloka faele ho foldareng e boletsoeng).

Faele ea hau ea .bat e se e loketse: haeba u ka e tsamaisa, litaelo tsohle tse thathamisitsoeng faeleng li tla etsoa ka bo eona (ha ho na liphoso ebile litokelo tsa molaoli lia hlokahala: maemong a mang, u ka hloka ho tsamaisa faele ea bat ha u le molaoli: tobetsa ka faele ea file ea .bat - u tsamaee joalo. molaodi ka hara dikahare tsa moelelo).

Tlhokomeliso: nakong e tlang, haeba u batla ho hlophisa file e entsoeng, tobetsa feela ho eona ebe u khetha "Edita."

Ho na le mekhoa e meng ea ho etsa file ea bat, empa kaofela ba theoha ho tlaleha taelo e le 'ngoe ka mohala ho faele ea mongolo ho sebali leha e le sefe sa mongolo (ntle le ho fomata), ebe o bolokoa ka katoloso ea .bat (mohlala, ho Windows XP le 32-bit Windows 7 o ka theha le faele la .bat moleng oa taelo o sebelisa "edit edit" ea li-file.

Haeba u na le ponts'o ea li-extensions tsa faele tse butsoeng (liphetoho sebakeng sa taolo - Litlhophiso tsa li-Explorer - pono - pata likeketso tsa mefuta ea faele e ngolisitsoeng), ka nako eo o ka theha file ea .txt feela, ebe o reneketsa file fono ka ho kenyelletsa katoloso ea .bat.

Mananeo a mathang ka faele ea bat le litaelo tse ling tsa motheo

Faeleng ea batch u ka tsamaisa mananeo le litaelo tse tsoang lethathamong lena: //technet.microsoft.com/en-us/library/cc772390(v=ws.10).aspx (le hoja tse ling tsa tsona li ka se fumanehe ho Windows 8 le Windows 10). Ho feta moo, ke tlhahisoleseling e 'ngoe feela ea basebelisi ba li-novice.

Mesebetsi e tloaelehileng haholo ke: ho qala lenaneo kapa mananeo a 'maloa a tsoang faeleng ea .bat, ho qala tšebetso e itseng (mohlala, ho hlakola letlapa, ho aba Wi-Fi ho tloha laptop, ho tima khomphutha ho timer).

Ho qala lenaneo kapa mananeo, sebelisa taelo:

qala "" program_path

Haeba tsela e na le libaka, akaretsa tsela eohle ka likhakanyo tse peli, mohlala:

qala "" "C:  Lenaneo la Files  program.exe"

Kamora tsela ea lenaneo, o ka bolela le paramente eo e lokelang ho tsebisoa ka eona, mohlala (ka mokhoa o ts'oanang, haeba likarolo tsa ts'ebetso li na le libaka, li qotsitse):

qala "" c:  windows  notepad.exe file.txt

Tlhokomeliso: ho qotsu habeli kamora ho qala, ho latela litlhaloso, lebitso la faele ea taelo le bonts'itsoeng moqoqong oa mola oa taelo le tlameha ho bonts'oa. Ena ke paramente ea boikhethelo, empa ha ho se na litheolelo tsena, ho sebelisa lifaele tsa bat tse nang le matšoao a qotsitsoeng litseleng le liparamente li ka tsamaea ka tsela e sa lebelloang.

Karolo e 'ngoe e sebetsang ke ho qala file e' ngoe ea file ho tsoa faeleng ea hajoale, o ka etsa sena o sebelisa taelo ea mohala:

call path_to_file_bat paramethara

Litekanyetso tse fetisitsoeng qalong li ka baloa kahare ho faele e ngoe ea bat, mohlala, re bitsa file ka paramethara:

letsetsa file2.bat paramente1 parame22 paramente3

Ho file2.bat o ka bala litekanyetso tsena 'me oa li sebelisa joalo ka litselana, paramethara ea ho qala mananeo a mang ka tsela ena:

echo% 1 echo% 2 echo% 3 ikhefutse

I.e. bakeng sa paramente e 'ngoe le e' ngoe re sebelisa nomoro ea eona ea serial ka pontšo ea liperesente. Sephetho mohlaleng o fanoeng e tla ba tlhahiso ho fensetere ea taelo ea liparamente tsohle tse fetisitsoeng (taelo ea echo e sebelisoa ho bonts'a mongolo ka fensetere ea khokahano).

Ka ho hlaka, fensetere ea taelo e koala hang hoba litaelo tsohle li phethisoe. Haeba u hloka ho bala tlhaiso-leseling ka har'a fensetere, sebelisa taelo ea ho khefutsa - e tla emisa ho etsoa ha litaelo (kapa ho koala fensetere) pele mosebelisi e mong le e mong a tobetsa konopo ka har'a khokahano.

Ka linako tse ling, pele o etsa taelo e 'ngoe, o hloka ho ema nakoana (mohlala, ho fihlela lenaneo la pele le qala ka botlalo). Ho etsa sena, o ka sebelisa taelo:

timeout / t time_seconds

Haeba ho hlokahala, o ka tsamaisa lenaneo ka video e nyenyefalitsoeng kapa e atolositsoeng o sebelisa li-parameter tsa MIN le MAX pele o hlakisa lenaneo ka boeona, mohlala:

qala "" / MIN c:  windows  notepad.exe

Ho koala fensetere ea taelo ka mor'a hore litaelo tsohle li phethiloe (le hoja hangata e koala ha ho sebelisoa ho qala), sebelisa taelo ea ho tsoa moleng oa ho qetela. Haeba khokahano e ntse e sa koalehe kamora ho qala lenaneo, leka ho sebelisa taelo e latelang:

cmd / c qala / b "" likhetho tsa program_path

Tlhokomeliso: Taelong ena, haeba tsela e lebang lenaneong kapa paramethara e na le libaka, ho ka ba le mathata ka tlhahiso, e ka rarolloang ka tsela e latelang:

cmd / c qala "" / d "path_to_folder_with_space_space" / b program_file_name "parameter_ene whitespace"

Joalokaha ho se ho hlokometsoe, ona ke tlhaiso-leseling ea mantlha mabapi le litaelo tse sebelisoang hangata ho li-file file. Haeba u hloka ho etsa mesebetsi e meng, leka ho fumana tlhaiso-leseling eo u e hlokang ho inthanete (sheba, ka mohlala, "etsa ho hong ka mola oa taelo" ebe u sebelisa litaelo tse tšoanang ho faele ea .bat) kapa botsa potso ho maikutlo, ke tla leka ho thusa.

Pin
Send
Share
Send