Cov txheej txheem:

Qhov yuam kev 1 txhais li cas?
Qhov yuam kev 1 txhais li cas?

Video: Qhov yuam kev 1 txhais li cas?

Video: Qhov yuam kev 1 txhais li cas?
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim

Ib yam yuam kev muaj txhais tau tias txhua yam uas tus programmer xav tau. Feem ntau cov programmers pom zoo tias ib qho yuam kev 0 txhais tau tias cov lus txib ua tiav tiav, thiab ib qho yuam kev 1 los yog siab dua feem ntau spellstrouble.

Kuj paub, Errorlevel yog dab tsi?

Hauv Microsoft Windows thiab MS-DOS, ib yuam kev yog tus lej lej rov qab los ntawm tus txheej txheem menyuam yaus thaum nws xaus. Qhov yuam kev yog 0 yog tias cov txheej txheem ua tiav. Qhov yuam kev yog 1 lossis ntau dua yog tias tus txheej txheem ntsib qhov yuam kev.

Ib sab saum toj no, tawm B txhais li cas? Tawm / B n. Siv Tawm / B yuav tsum tsis txhob tua cov ntaub ntawv batch lossis subroutine thiab rov qab mus rau cov lus txib processor lossis hu rau batch file orcode tam sim ntawd. Los piav qhia, ib tus tuaj yeem siv tau Tawm / B 0 zoo ib yam li GOTO:EOF rau tawm (los yog ntau dua, rov qab) los ntawm ntu hu ua code hauv ascript.

Hauv qhov no, kev siv @echo tawm yog dab tsi?

Los ntawm lub neej ntawd, cov ntaub ntawv batch yuav tso tawm nws cov lus txib raws li itruns. Lub hom phiaj ntawm thawj cov lus txib uas @ echo tawm yog tig tawm no tso saib. Cov lus txib " echo tawm "rov tawm cov zaub rau tag nrho tsab ntawv, tsuas yog rau " echo tawm " command nws tus kheej.

Dab tsi yog echo tawm hauv cov lus txib?

ECHO-ON/ECHO-OFF Command

  • ECHO-ON thiab ECHO-OFF cov lus txib yog siv los pab thiab tsis siv lub suab nrov, lossis tso tawm ntawm qhov screen, ntawm cov cim nkag ntawm cov keyboard.
  • ECHO-OFF hais kom ua suppresses echoing rau lub terminalattached rau ib tug txheej txheem.
  • Cov piv txwv hauv qab no disables echoing rau tus neeg siv uas nws tus lej txheej txheem yog 21:

Pom zoo: