How To Write Comment Block In Batch File MSDOS

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

Windows MS-DOS very useful programming environment for Windows family operating system. In order to complete jobs easier, faster and less error system administrators generally uses batch scripts. In order to remember or understand commands and functions written to batch script we generally use comments or comment block. In this tutorial we will look how to create comments.

Single Line Comment

We will start by showing single line comment. rem is the keyword used by MS-DOS in order t specify comment line. The comment line will start with rem keyword and we have to put single space to start comment part. In this example we will write comment This is comment . As we know comments are not executed or interpreted like other commands. They are just text to explain code.

Multiple Line or Block Comment

We can also provide multi line or block comment by using multiple rem keyword in a row like below.

:: As Comment

We can also use :: as comment sign like rem . We will use :: as line starter and write comment after that. We can also use it multiple line for block comments too

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM
LEARN MORE  What is Microsoft Powershell ? How Can I Automate Tasks?

You may also like...

2 Responses

  1. Cat Hat says:

    Greate post. Keep posting such kind of info on your page.
    Im really impressed by your blog.[X-N-E-W-L-I-N-S-P-I-N-X]Hello there,
    You’ve done an incredible job. I’ll certainly digg it and in my view suggest to my friends.
    I am sure they will be benefited from this web site.

  2. فروشگاه اينترنتی says:

    Extremely effective and excellent, and providing such information, all can provide a passionate and worthwhile world, and has special knowledge about the subject matter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Open

Enjoy this blog? Please spread the word :)