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

The Dyalog "Knowledgebase". This forum is read-only
Forum rules
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.

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

Postby AndyS|Dyalog on Mon Mar 21, 2011 11:18 am

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.
User avatar
AndyS|Dyalog
 
Posts: 165
Joined: Tue May 12, 2009 6:06 pm

Return to Frequently Asked Questions (FAQ)

Who is online

Users browsing this forum: No registered users and 1 guest