using substitute on a text with slashes
i am am using the function get(desktoppath) and this is resulting in /c:/users/med/dsktop/
Then I am trying to use substitute to replace desktop with downloads
Apparently all these slashes are causing problems because the substitute is not replacing anything.
I tried substitute($desktop;"desktop";"downloads") where $desktop is the variable holding the desktop path
and tried substitute($desktop;"/desktop";"/downloads")
and tried substitute($desktop;"\/";"-") as an intermediate step
nothing seems to be substituting any thing, so what am I doing wrong