I have a local file path containing "\" and I need to change all occurrences to "/" for a remote file path.
I have tried
myString.replace("\","/")
and
myString.replace(Convert.ToChar(92), Convert.ToChar(47))
Both seem to leave the "\" in tact..
Answer:
NewString = myString.replace("\","/")
The problem was that I was not assigning it to a variable. Escaping the slash actually made it fail, in vb.net at least.