how to change a unix path to a windows' path?

set writepath = substitute("$somepath","/","\\")

seems a reasonable way, but I get a bracing error (caused by the backslash).
I’ve tried other reasonable syntax alternatives but all of them - as long as a backslash is there - produce a bracing error

?d

HI Dani, I had a similar bracing error problem the other day.

after some trial and error(s), I got around it using something like this…

touch → set somepath = c:/blee/blah
touch → set backslash = \touch → set writepath = substitute("$somepath","/",$backslash)
touch → echo $writepath
c:\blee\blah

is there a more elegant way to do this, anybody?

Rod.