Trong MSG ko được dùng các ký tự đại diện trong hộp thoại cần gởi. Nếu thêm vào sẽ báo lỗi tham số không chính xác
Để gởi 1 thông điệp đến USER thì bạn chỉ cần gõ | MSG TÊN NGƯỜI DÙNG Nội dung cần hiển thị
Danh sách bên dưới là cách sử dụng MSG
Mã:
To send the message with text "lunch time" to all sessions of user RON, use this command in command prompt:
msg RON Lunch time?[ATTACH type="full"]8428[/ATTACH]
If you want to send the message to all usernames that is stored in the file USERS, use this command:
msg @users Please logout in 10min due to server maintenance
When you have your message in the text file (message.txt) and you want to send it to PAUL, use this command:
msg PAUL < message.txt
If you want to send the message to all logged users, use this command:
msg * Please, save your work. Server maintenance!
-------------------
Hình bên trên cấu trúc lệnh bạn gõ sai hoàn toàn ! Bạn có thể tìm trong thư viện lệnh CMD của Microsoft để hiểu rõ cách thức của lệnh