batch file - How can I escape an exclamation mark ! in cmd scripts? -


When I have setlocal ENABLEDELAYEDEXPANSION set in a CMD script, I can escape! Do I want to use an order as a parameter?

@echo off setlocal ENABLEDELAYEDEXPANSION echo I want to go out with a bang! Echo I still want to go out with a bang ^!

That's what I found (^^)

  @hoho of catalocol envelopedxexchange echo I want to go out with a bang ^^!  

Comments