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