How to easily escape characters for variables in batch files
To escape the following special characters
^ & | < > ( ) #
from the command line we just need to add a single ^
Example:
When we are setting a variable we must use ^^^ instead of the single ^
SET myvariable=^^^#mytext^^^&mytext^^^<
Comments
Post a Comment