Tus msg hais kom ua yog Command Prompt uas tau siv los xa lus rau ib lossis ntau tus neeg siv ntawm lub network siv Command Prompt.
Thaum cov lus txib tau tshwm sim, ib qho kev ceeb toom tshwm rau ntawm lub tshuab uas tau xa mus rau qhov ntawd qhia cov lus nrog rau tus neeg xa ntawv lub npe siv thiab lub sijhawm xa cov lus.
Nws ua haujlwm zoo ib yam li net xa cov lus txib uas tau nrov hauv Windows XP, tab sis nws tsis yog qhov tseeb hloov pauv rau nws. Saib Siv Msg Hais kom hloov Net Xa mus ntxiv rau nplooj ntawv.
Msg Command Availability
Cov lus txib yog muaj nyob rau hauv Command Prompt hauv Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, thiab Windows XP.
Nws tseem muaj los ntawm Command Prompt cov cuab yeej siv tau hauv Advanced Startup Options thiab System Recovery Options.
Qhov muaj ntawm qee qhov msg hais kom hloov pauv thiab lwm yam kev hais kom ua syntax yuav txawv ntawm kev khiav hauj lwm rau kev ua haujlwm.
Msg Command Syntax
msg { username | sessionname | sessionid | @ filename | } [ /server: servername] [ /time: seconds] [ /v] [ /w] [lus
Saib Yuav Ua Li Cas Nyeem Command Syntax yog tias koj tsis paub meej yuav txhais li cas msg command syntax raws li nws tau sau saum toj no lossis piav qhia hauv qab no.
Msg Command Options | |
---|---|
Option | piav qhia |
username | Siv qhov kev xaiv no los qhia tus neeg siv lub npe xa cov lus rau. |
sessionname | Thov qhia lub sijhawm xa xov mus rau ib ntu tshwj xeeb. |
sessionid | Kev xaiv sessionid tuaj yeem siv los xa lus rau kev sib tham siv qhov kev sib kho tus ID. |
@ filename | Siv qhov kev xaiv @filename xa lus rau cov npe siv, cov npe sib tham, thiab kev sib tham ID tau teev nyob rau hauv cov ntaub ntawv teev tseg. |
Qhov kev xaiv yog siv los xa lus rau txhua qhov kev sib tham ntawm lub servername. | |
/ server: servername | Lub servername yog lub server uas tus username, sessionname, lossis sessionid, nyob rau. Yog tias tsis muaj lub npe server tau teev tseg, cov lus yuav raug xa mus raws li qhia rau tus neeg rau zaub mov koj tab tom ua haujlwm msg hais kom ua los ntawm. |
/time: seconds | Specifying ib lub sij hawm nyob rau hauv vib nas this nrog lub /time hloov muab msg hais kom ua ib tug ntev ntawm lub sij hawm tos tus txais ntawm cov lus kom paub meej tias tau txais nws. Yog tias tus neeg txais tsis lees paub cov lus hauv vib nas this ntawm lub vib nas this, cov lus yuav raug rov qab. |
/v | The /v hloov ua rau qhov kev hais kom ua hom lus, uas yuav nthuav tawm cov ncauj lus kom ntxaws txog cov haujlwm uas msg hais kom ua. |
/w | qhov kev xaiv no yuam cov lus txib kom tos cov lus xa rov qab tom qab koj xa lus. Lub /w hloov pauv tsuas yog siv tau nrog /v hloov. |
message | Nov yog cov lus koj xav xa. Yog tias koj tsis qhia meej cov lus ces koj yuav raug hais kom nkag mus rau ib qho tom qab ua tiav cov lus txib msg. |
/? | Siv cov kev pab hloov nrog msg hais kom ua kom pom cov ntaub ntawv hais txog ntau txoj kev xaiv. |
Koj tuaj yeem khaws cov lus tso tawm ntawm cov lus txib mus rau cov ntaub ntawv siv tus neeg teb xov tooj rov qab. Saib Yuav Ua Li Cas Redirect Command Output rau Cov Ntaub Ntawv rau cov lus qhia dav dav lossis tshawb xyuas peb Daim Ntawv Qhia Kom Tricks rau cov lus qhia ntxiv.
Msg Command Piv txwv
msg @myteam Lub lauj kaub yaj thaum 1 teev tsaus ntuj, ntawm kuv!
Hauv qhov piv txwv no, msg cov lus txib tau raug siv los qhia tus lej xaiv ntawm cov neeg siv uas muaj nyob rau hauv cov ntaub ntawv myteam [ @ filename] txuas nrog lub server uas yuav tsum muaj ntsib nyob rau lub Melting lauj kaub noj su [message].
msg RODREGT /server:TSWHS002 /time:300
Ntawm no, peb tau siv cov lus txib xa lus rau RODREGT [username], tus neeg ua haujlwm uas txuas rau TSWHS002 [ /server: servername] server. Cov lus no yog lub sij hawm rhiab heev, yog li peb tsis xav kom nws pom nws yog tias nws tsis tau pom tom qab tsib feeb [ /time: vib nas this].
Vim tias cov lus tsis tau teev tseg, msg cov lus txib yuav nthuav tawm cov ntawv ceeb toom ntawm qhov hais tias Sau cov lus xa; xaus lus los ntawm nias CTRL-Z ntawm kab tshiab, ces ENTER.
Tom qab nkag mus rau cov lus rau RODREGT, koj yuav tsum nias lub Enter, ces CTRL+Z, ces Enter rov.
msg/v Test Message!
Hauv qhov piv txwv saum toj no, peb tau xa txhua tus neeg txuas nrog rau lub server xa ntawv [xov]. Peb kuj xav pom cov haujlwm tshwj xeeb uas msg hais kom ua tau ua qhov no [ /v].
Qhov no yog ib qho piv txwv yooj yim uas koj tuaj yeem sim hauv tsev, tsis muaj cov neeg siv txuas nrog koj lub computer. Koj yuav pom cov lus pop tuaj ntawm koj tus kheej lub vijtsam thiab cov ntaub ntawv hauv qab no hauv Command Prompt window, ua tsaug rau kev siv cov lus hloov pauv:
Xa lus rau kev sib kho Console, tso saib lub sijhawm 60
Async lus xa mus rau kev sib tham Console
Siv Msg Command los hloov Net Xa
Cov lus txib msg yog npaj los siv los ua kev xa xov mus rau cov neeg siv khoom siv davhlau ya nyob twg, tsis tas li ntawm ob lub khoos phis tawj Windows 7, piv txwv li.
Qhov tseeb, tej zaum koj yuav muaj lub sijhawm nyuaj los ua haujlwm ntawm ob lub tshuab Windows tus qauv zoo li net xa cov lus txib tau ua. Tej zaum koj yuav tau txais "Yuam Kev 5 tau txais cov npe kev sib kho" lossis "Yuav ua li cas 1825 tau txais cov npe sib kho" lus.
Txawm li cas los xij, qee tus tau muaj hmoo siv msg hais kom ua li no los ntawm kev hloov pauv AllowRemoteRPC cov ntaub ntawv tus nqi sau npe los ntawm 0 rau1 ntawm lub computer tau txais cov lus (reboot lub computer tom qab hloov yog tias koj ua qhov no). Tus yuam sij no nyob hauv Windows Registry hauv qab HKEY_LOCAL_MACHINE Hive ntawm qhov chaw no: SYSTEM\CurrentControlSet\Control\Terminal Server.
Msg Related Commands
Cov lus txib msg yog kev sib txuas lus, yog li nws yuav siv tau nrog lwm cov lus txib ntsig txog lub network, tab sis feem ntau, nws yuav raug siv ib leeg los xa lus.
Kuj, raws li tau hais ob peb zaug, cov lus txib no zoo ib yam li cov lus txib xa mus so haujlwm.