Line Continuation Character

1 05 2008

In this post I list the new line character for batch scripts, Makefile files and VBScript scripts.

A while ago I spent a lot of time for finding information about which character was the line continuation character in a Windows batch script.
The line continuation character allows us to split a line of code in multiple lines while letting the command interpreter know that the current command is not ending upon newline but is going on in the next line.
This is particularly useful if you want to format your scripts to make them more readable.
Here is a list of newline line continuation characters in few scripting languages:

  1. Batch (.bat): ^ (caret)
  2. Nmake (Makefile): \ (backslash)
  3. VBScript (.vbs): _ (underscore)

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.