![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
4 Nov
2021
4 Nov
'21
8:54 a.m.
On 11/3/21 9:55 PM, Hans Hagen via ntg-context wrote:
On 11/3/2021 7:49 PM, Pablo Rodriguez via ntg-context wrote:
[...] How can I get the io.fileseparator or escape the backslash in main_filename_win above? (there are helpers for splitting names and combining paths)
- use locals - wrap names in "" and use / : dir "c:/data"
Many thanks for your reply, Hans. I didn’t know that this was valid in Windows command prompt: command "d:/data/file.txt"
- just use file.copy (with forward slashes), is faster too
copy was just a command sample, not the one I intend to use.
so in the end there is no need to test for windows
I’m really suprised that Windows accepts slashes in paths. Many thanks for your help again, Pablo -- http://www.ousia.tk