Yuav Tsim Li Cas Batch File hauv Windows 7: 5 Cov Kauj Ruam (nrog Duab)

Cov txheej txheem:

Yuav Tsim Li Cas Batch File hauv Windows 7: 5 Cov Kauj Ruam (nrog Duab)
Yuav Tsim Li Cas Batch File hauv Windows 7: 5 Cov Kauj Ruam (nrog Duab)

Video: Yuav Tsim Li Cas Batch File hauv Windows 7: 5 Cov Kauj Ruam (nrog Duab)

Video: Yuav Tsim Li Cas Batch File hauv Windows 7: 5 Cov Kauj Ruam (nrog Duab)
Video: Python! Converting HEIC Images to PNG or JPG 2024, Tej zaum
Anonim

Muaj ntau qhov zoo nkauj zoo heev uas tuaj yeem ua tiav siv Batch Files. Tib neeg siv lawv los siv cov txheej txheem PC yooj yim thaum lwm tus ua game. Yog, kev ua si! Ntau tus txawm tias tseem tsis tau paub tias yuav pib qhov twg thaum nws los tsim Batch Files, tab sis nws yooj yim heev ua.

Cov kauj ruam

Tsim Batch File hauv Windows 7 Kauj Ruam 1
Tsim Batch File hauv Windows 7 Kauj Ruam 1

Kauj Ruam 1. Kawm qee cov lej Batch yooj yim

Batch yog cov ntawv sau ua lus; nws muaj ntau cov lej uas tsis tuaj yeem kawm hauv ib qho teeb tsa lossis ib qho kev piav qhia. Muaj qee qhov lej yooj yim, zoo ib yam li DOS cov lus txib, txawm li cas los xij, uas yooj yim rau hauv siab:

  • ECHO - Qhia cov ntawv koj tau nkag mus tom qab tus lej ntawm lub vijtsam
  • ECHO OFF - Nkaum cov lus txib ntawm txhua qhov lus txib muab.
  • REM - Ntxig kab lus tawm tswv yim hauv qhov program
  • PAUSE - Ib ntus ncua cov ntawv sau. Nias ib qho tseem ceeb kom txav mus rau kab lus txib tom ntej.
  • EXIT - Tawm ntawm tsab ntawv Batch.
Tsim Batch File hauv Windows 7 Kauj Ruam 2
Tsim Batch File hauv Windows 7 Kauj Ruam 2

Kauj Ruam 2. Qhib Notepad

Nias thiab tuav lub Windows qhov tseem ceeb thiab ntaus "R" ntawm koj cov keyboard. Yuav muaj lub thawv me me uas tshwm nyob rau sab qis sab laug ntawm koj lub vijtsam. Ntaus “notepad” thiab ntaus Enter. Qhov no yuav qhib Notepad ntawm qhov screen.

Ib txoj hauv kev los ua qhov no yog nyem Start menu thiab ntaus hauv "notepad" hauv kev tshawb nrhiav thiab ntaus "Enter" nyob ntawd

Tsim Batch File hauv Windows 7 Kauj Ruam 3
Tsim Batch File hauv Windows 7 Kauj Ruam 3

Kauj Ruam 3. Ntxiv Batch chaws

Koj tsis tuaj yeem tsim Batch file yam tsis muaj cov lej, yog li nkag mus rau cov lej xav tau rau koj cov ntaub ntawv batch. Txhua txoj cai tau siv ntawm txhua kab yog cov lus txib tshwj xeeb. Ua piv txwv, koj tuaj yeem ntaus lossis luam tag nrho cov cai hauv qab no, txhua tus hauv kab sib cais:

  • @Echo Tawm
  • Echo Nyob Zoo, Ntiaj Teb!
  • Ncua
  • Tawm
  • Txoj cai no yuav tso tawm cov lus "Nyob Zoo, Ntiaj Teb!" nyob rau hauv lub qhov rai me me dub dub thaum pib qhov haujlwm, thiab lub qhov rai yuav kaw thaum muaj tus yuam sij raug nias.
Tsim Batch File hauv Windows 7 Kauj Ruam 4
Tsim Batch File hauv Windows 7 Kauj Ruam 4

Kauj Ruam 4. Txuag kom raug

Txhawm rau kom cov ntaub ntawv ua haujlwm tau zoo, lub khoos phis tawj yuav tsum paub tias nws yog hom ntawv twg. Tias yog vim li cas nws tseem ceeb heev uas koj yuav tsum khaws nws kom raug.

  • Hauv lub kaum sab laug sab saud, nyem "Cov Ntaub Ntawv" tom qab ntawd "Txuag Raws Li …" Lub thawv me me yuav tshwm sim.
  • Hauv lub pane ntawm sab laug sab tes ntawm lub qhov rais, scroll up thiab xaiv "Desktop," lossis txhua qhov chaw koj xav khaws nws.
  • Hauv qab ntawm lub qhov rais hauv qab "Txuag raws li hom:" teb, nyem thiab xaiv "Txhua Cov Ntaub Ntawv" xaiv. Saum toj no, hauv "Cov ntaub ntawv npe:" teb, ntaus lub npe ntawm cov ntaub ntawv tab sis ntxiv ".bat" mus rau qhov kawg ntawm nws (Piv txwv li.bat).
  • Ntaus "Txuag" nyob rau sab xis sab xis ntawm lub qhov rais kom txuag tau cov ntaub ntawv.
Tsim Batch File hauv Windows 7 Kauj Ruam 5
Tsim Batch File hauv Windows 7 Kauj Ruam 5

Kauj Ruam 5. Ua kom nws ua haujlwm

Xaiv Start Menu thiab nyem "Computer." Los ntawm lub qhov rais no, mus rau qhov chaw ntawm cov ntaub ntawv uas koj nyuam qhuav tau txais kev cawmdim, thiab nrhiav cov ntaub ntawv batch. Nws yuav tsum muaj lub npe koj khaws nws hauv qab, thiab lub cim me me nrog ob lub zog me me ntawm nws. Ob npaug nias rau qhib.

  • Yog tias koj siv tus piv txwv muab rau hauv cov ntawv ua pawg, lub qhov rai me me dub yuav tsum qhib nrog cov lus "Nyob Zoo Ntiaj Teb!" nyob rau sab laug sab tes laug ntawm nws. Coj mus rhaub ib qho yuam sij kom tawm ntawm txoj haujlwm. Yog tias koj tsim koj tus kheej cov ntaub ntawv ua lwm yam, nws yuav tsum ua qhov koj tau teev nws ua.
  • Koj tau ua tiav tsim cov ntawv batch ntawm Windows 7.

Pom zoo: