Batch File Line Continuation

Print Topic  Return to Overview  Previous Topic  Next Topic 

TCC will combine multiple lines in the batch file into a single line for processing when the Escape Character (the actual token or the symbolic "%=" reference) is the last character of each line to be combined (except the last). For example:

 

c:\> echo The quick brown fox jumped over the ^

sleeping ^

dog. > alphabet

 

You cannot use this technique to extend a batch file line beyond the normal command line length limit.

 

Topic "batchlinecont.htm" last edited 1/26/2008. ©2008  JP Software, Inc.
Keywords: Batch Files,Line Continuation,EscapeChar