how to automatically escape the path
Try this:
string path = @"c:\user\test\test.jpg";
string s = s.Replace(@"\", @"\\");
Try this:
string path = @"c:\user\test\test.jpg";
string s = s.Replace(@"\", @"\\");