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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________