kdb/q on windows

I am having a ton of issues with respect to  file paths while running my programs with Q. Apparently even on Windows, Q expect the path to be delimited by “/”. So I run into issues when I extract my environment  variables from within Q programs as it is not happy with the windows "" path separator. This causes problems in interaction between windows batch scripts and Q programs. I end up repeating my variables in batch and in Q. Is there a better solution to this issue? It is a bit annoying.

thanks

Hi Sam,

You could try something like this for your file path calls in windows to change the delimter.

q)system “chdir”

“C:\Users\Rory”

q)ssr[first system “chdir”;“\”;“/”]

“C:/Users/Rory”

q)hsym `$ssr[first system “chdir”;“\”;“/”]

`:C:/Users/Rory

Thanks Rory

Cool thanks. 

p:{hsym `$ssr[x;“\”;“/”]}

q)getenv `KDBHOME

“C:\kdb\metrics”

q)pconvert:{hsym `$ssr[x;“\”;“/”]}

q)pconvert getenv `KDBHOME

`:C:/kdb/metrics