14 ESCAPING

This chapter is about a vexing problem and its Batch solution. The problem is that you sometimes want to use a character as simple text but that particular character has a specific function in the coding language. The solution is escaping.

In this chapter, I’ll explain all the intricacies surrounding how to escape a character in Batch. A certain syntax is used the majority of the time, except for when it isn’t. You’ll learn about multiple rounds of escaping, the syntax, and why you might want to escape a character more than once. I’ll also return to the “continuation character,” used to continue a command on multiple lines of ...

Get The Book of Batch Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.