I can't get my head around quotes.
EG, I have a string for an mp3 with quotes:
string ARTIST = "John \"The Man\" Doe"
I then want to pass this to a command line WITH the escape sequences. I therefore need my string to look like (I think):
ARTIST = "John \\\"The Man\\\" Doe"
So it looks like, for every time I have an (actual) "
in my string, I need \"
.
I have tried using:
ARTIST.Replace("\"","\\\"")
But this has not worked. What is the correct way to handle quotes at the command line in my application?