Hello,
I'm having trouble figuring out how to add a single double quote in my string.
My Code line
This is what debug looks like:Code:String Commandstr1 = @"C:\Temp\eventcombMT.exe" + " /file:" + "\"" + @"C:\Temp\servers.txt";
Commandstr1 "C:\\Temp\\eventcombMT.exe /file:\"C:\\Temp\\servers.txt" string
See that it is adding the unneeded \ after file:
My need result line:
eventcombmt.exe /file:"C:\Temp\servers.txt";
Can anyone see my problem with escaping this one "
Thanks,
Mike




Reply With Quote