BAT - cov ntaub ntawv batch uas muaj teeb tsa cov lus txib rau automating qee qhov kev ua nyob rau hauv Windows. Nws tuaj yeem pib ua ib zaug lossis ob peb zaug nyob ntawm nws cov ntsiab lus. Tus neeg siv txhais lub ntsiab lus ntawm "cov ntawv xa tawm" ntawm nws tus kheej - hauv qee kis, nws yuav tsum yog cov lus txib uas DOS txhawb nqa. Hauv tsab xov xwm no, peb yuav saib txoj kev tsim cov ntaub ntawv zoo li no sib txawv.
Tsim cov .bat cov ntaub ntawv hauv Windows 10
Nyob hauv txhua qhov kev siv ntawm Windows, koj tuaj yeem tsim cov ntaub ntawv batch thiab siv lawv los ua haujlwm nrog cov ntawv thov, cov ntaub ntawv lossis lwm cov ntaub ntawv. Cov kev pabcuam thib peb tsis muaj qhov xav tau rau qhov no, vim tias Windows nws tus kheej muab txhua txoj kev tuaj yeem rau qhov no.
Ceev faj thaum sim tsim BAT nrog cov tsis paub thiab tsis nkag siab rau koj cov ntsiab lus. Cov ntaub ntawv zoo li no tuaj yeem tsim kev puas tsuaj rau koj lub PC los ntawm kev khiav kab mob, ransomware lossis ransomware ntawm koj lub computer. Yog tias koj tsis nkag siab cov lus txib twg cov cai muaj, ua ntej nrhiav cov ntsiab lus.
Txoj Kev 1: Notepad
Los ntawm cov ntawv thov classic Lub Phoo Ntawv koj tuaj yeem tsim tau yooj yim thiab muaj ntau BAT nrog cov kev tsim nyog tsim nyog ntawm cov lus txib.
Qhov Xaiv 1: Tso Tawm Chaw
Qhov kev xaiv no yog qhov feem ntau, yog li xav txog nws ua ntej.
- Dhau "Pib" khiav lub built hauv lub qhov rais Lub Phoo Ntawv.
- Nkag mus rau cov kab tsim nyog, tshuaj xyuas lawv qhov tseeb.
- Nyem rau Cov ntaub ntawv > Txuag Raws Li.
- Ua ntej, xaiv cov ntawv qhia chaw uas cov ntaub ntawv yuav muab khaws cia rau hauv lub teb "Cov ntaub ntawv npe" sau lub npe kom tsim nyog es tsis txhob muaj lub hnub qub, thiab hloov qhov sib txuas tom qab ntawv teev kom hloov los ntawm .txt rau .bbCov. Hauv dab teb Hom Ntawv xaiv xaiv "Txhua cov ntaub ntawv" thiab nyem "Txuag".
- Yog tias cov ntawv nyeem muaj cov tsiaj ntawv Lavxias, qhov encoding thaum tsim cov ntawv yuav tsum yog ANSICov. Txwv tsis pub, koj yuav tau txais cov ntawv nyeem tsis tau uas tau tuaj ntawm kab hais kom ua xwb.
- Ib qho batch ua cov ntaub ntawv tuaj yeem khiav ua cov ntaub ntawv li niaj zaus. Yog tias cov ntsiab lus tsis muaj ib lo lus txib cuam tshuam nrog tus neeg siv, cov kab hais kom ua yuav raug qhia ib pliag. Txwv tsis pub, nws lub qhov rais yuav pib nrog cov lus nug lossis lwm yam uas xav tau cov lus teb los ntawm tus neeg siv khoom.
Qhov Xaiv 2: Cov Ntawv Qhia Raws Li
- Koj tseem tuaj yeem qhib cov ntawv qhia tam sim ntawd qhov twg koj npaj yuav txuag cov ntawv, nyem-nias ntawm qhov chaw khoob, taw tes rau Tsim thiab xaiv los ntawm daim ntawv “Phau ntawv ntawv”.
- Muab nws lub npe yam xav tau thiab hloov pauv txuas ntxiv tom qab teev nrog .txt rau .bb.
- Tsis poob, qhov lus ceeb toom txog kev hloov pauv ntawv yuav tshwm sim. Nrog nws pom zoo.
- Nyem rau ntawm RMB ntawv thiab xaiv "Hloov".
- Cov ntaub ntawv qhib hauv Notepad khoob, thiab muaj koj tuaj yeem sau nws ntawm koj qhov kev txiav txim.
- Tiav dhau los "Pib" > "Txuag" hloov txhua yam. Koj tuaj yeem siv cov ntawv qhia keyboard rau tib lub hom phiaj. Ctrl + S.
Yog tias Notepad ++ tau teeb tsa koj lub computer, nws yog qhov zoo dua los siv nws. Daim ntawv thov no nthuav qhia cov syntax, ua kom yooj yim rau kev ua haujlwm nrog kev tsim cov txheej txheej. Nyob rau sab saum toj vaj huam sib luag, nws yog qhov tsim nyog los xaiv qhov ntsuas nrog kev pab txhawb Cyrillic ("Encodings" > Cyrillic > OEM 866), txij li tus qauv ANSI rau qee qhov tseem niaj hnub ua kom pom cov krakozyabry hloov ntawm cov tsiaj ntawv ib txwm nkag mus hauv Lavxias txheej txheem.
Txoj Kev 2: Kab Lus Qhia
Los ntawm lub console, tsis muaj teeb meem, koj tuaj yeem tsim lub khoob los yog tag nrho BAT, uas tom qab ntawd yuav tawm los ntawm nws.
- Qhib lub Command Command nyob rau hauv txhua txoj kev yooj yim, piv txwv li, dhau ntawm "Pib"los ntawm kev sau nws lub npe hauv kev tshawb.
- Ntaus qhov hais kom ua
copy con c: lumpics_ru.bat
qhov twg theej con - pab neeg uas yuav tsim cov ntawv sau, c: - kev qhia khaws cov ntaub ntawv, lumpics_ru yog lub npe ntawm cov ntaub ntawv, thiab .bb - kev txuas ntxiv ntawm cov ntawv sau. - Koj yuav pom tias blinking tus cursor tau hloov mus rau txoj kab hauv qab - ntawm no koj tuaj yeem nkag rau hauv kab ntawv. Koj tuaj yeem txuag ib daim ntawv uas tsis muaj dab tsi, thiab kom paub ua li cas ua qhov no, mus rau kauj ruam tom ntej. Txawm li cas los xij, feem ntau cov neeg siv tam sim ntawd nkag mus rau cov lus txib tsim nyog muaj.
Yog koj sau ntawv cov ntawv manually, mus rau txhua kab tshiab nrog kev sib txuas tseem ceeb Ctrl + SauCov. Yog tias koj tau npaj cov ntawv npaj ua ntej thiab theej tawm cov lus txib, tsuas yog cia li nyem-nyem rau ntawm qhov chaw khoob thiab dab tsi uas nyob rau hauv daim ntawv los teev cia yuav muab tso cia.
- Siv qhov tseem ceeb ua ke nrog txuag cov ntaub ntawv Ctrl + Z thiab nyem SauCov. Lawv nyem yuav raug tso tawm kom pom hauv lub console raws li qhia hauv lub nrav hauv qab no - qhov no yog qhov qub. Nyob rau hauv cov ntawv khaws cia nws tus kheej ob lub cim no yuav tsis tshwm sim.
- Yog tias txhua yam ua tau zoo, koj yuav pom kev ceeb toom hauv Cov Lus Qhia kom ceev.
- Txhawm rau txheeb xyuas qhov tseeb ntawm cov ntaub ntawv tsim, khiav nws zoo ib yam li lwm cov ntaub ntawv ua tiav.
Tsis txhob hnov qab tias txhua lub sijhawm koj tuaj yeem hloov kho cov ntaub ntawv batch los ntawm txoj cai-nias ntawm lawv thiab xaiv "Hloov", thiab kom cawm tau Ctrl + S.