Batch File Replace Exclamation Mark with Escaped Exclamation Mark
问题 I am working on a batch file that get's data as a variable, and in that variable it has an exclamation mark. What i am trying to do is add the necessary escape characters to the variable. "Title":"Turk 182!" Above is an example of the data I am working with. setlocal EnableDelayedExpansion rem replace ! with ^^! set var=%var:!=^^!!% But I am not sure that is the correct syntax, since how can i escape an esclamation mark if it's also used as part of the search and replace? I am trying to