You know, MSG can also send multiple lines of messages

Source: Internet
Author: User

People familiar with the command line know the MSG message sending tool, but it can send a single line of information, but with some tips we can let it send multiple lines of message at a time, such as in the middle of the message to add a batch line break, the following is the reference code:


@echo off

Setlocal enabledelayedexpansion

Set title= Batch line break command script

Title%title%

Echo%title%

Echo.

The blank line below REM cannot be omitted

Set p=!^



!

msg%username%/w "Here is line 1th!p! here is line 2nd!p!! p!, this is line 4th.


Click on the attachment below to download the MSG message Wrapping demo program.

This article is from "Boat Computer Studio" blog, please be sure to keep this source http://conducer.blog.51cto.com/841262/1814828

You know, MSG can also send multiple lines of messages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.