If I use:
(dcl_SelectFiles '("Drawings|*.dwg")"Select drawing files for list" (getvar "dwgprefix"))
to get a list of files they come back, as expected, with "\\" as the folder delimiter. If I then put that list into a listbox they display with a single backslash, again, as expected. However, if I then pull that list from the listbox, they come back into lisp with a single backslash.
If I try to write the resulting string to a text file I get single backslash delimiters. I tried the following code to replace the singles with doubles, but if the first character in a folder name happens to be a "t" then the backslash produces a tab character
Not what I wanted.
(strcat
"\""
(vl-list->string
(subst (ascii "/") (ascii "\\") (vl-string->list line))
)
"\""
)
What am I missing here? There must be a way to do this.
Suggestions are appreciated.
Mike