How do I deal with quote characters when using cmd.exe

Ah. doh. Think I’ve answered my own question.

If you use /S, and wrap the whole thing in quotes, it just removes those outer quotes.

cmd.exe /S /C " do what you like here, quotes within the outermost quotes will be preserved "

Leave a Comment