Page 1 of 1

Why does ⎕cmd not work when my current directory is a UNC ?

Posted: Mon Mar 21, 2011 11:18 am
by AndyS|Dyalog
You may find that expressions such as ⎕cmd'dir' return empty results. This will happen if the current working directory is a UNC, rather than based on drive letter and directory.

So supposing \\mymachine\mydir is mapped to Z:\mydir, then if the shortcut to Dyalog APL has the "Start In" directory defined as "Z:\mydir", ⎕cmd'dir' will return the contents of mydir. If however "Start In" is defined to be \\mymachine\mydir then ⎕cmd'dir' will return an empty result.

This is a limitation in Windows, rather than a limitation of Dyalog APL. More information can be found at http://support.microsoft.com/?kbid=156276.