cancel
Showing results for 
Search instead for 
Did you mean: 

UNC filenames

effbiae
New Contributor
on windows, we can load scripts with UNC filename:

\l //wi/c/tmp.q

we can load csv:
t: ... 0:`://wi/c/tmp.csv

but we can't save:

save `://wi/c/t.csv
'//wi/c/t.csv. OS reports: The specified path is invalid.

`://wi/c/t.txt 0:enlist"text"
'//wi/c/t. OS reports: The specified path is invalid.

any workarounds?
3 REPLIES 3

Flying
New Contributor III
I found that if you replace forward-slash `/' with the normal backward ones `\', it will work properly.

effbiae
New Contributor
>
 replace forward-slash `/' with the normal backward ones `\'

these three experiments with saving to UNC filenames didn't work

q)save `:\\wi\c\t.csv
'\
  [0]  save `:\\wi\c\t.csv
                  ^

q)save `\\wi\c\t.csv
'\
  [0]  save `\\wi\c\t.csv
                 ^ 

q)save `://wi/c/t.csv
'//wi/c/t.csv. OS reports: The specified path is invalid.
  [0]  save `://wi/c/t.csv
       ^

Flying
New Contributor III
save hsym`$"\\\\wi\\c\\t.csv"

or

save`$ssr[;"/";"\\"]string`://wi/c/t.csv