AnsweredAssumed Answered

using substitute on a text with slashes

Question asked by med on Feb 18, 2014
Latest reply on Feb 18, 2014 by med

Title

using substitute on a text with slashes

Post

     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

Outcomes