DIR of Local Share Fails from Command Prompt Started by AT

Last reviewed: February 7, 1995
Article ID: Q121721
The information in this article applies to:
  • Microsoft Windows NT Workstation version 3.5
  • Microsoft Windows NT Server version 3.5

SYMPTOM

If you use the AT command to start Command Prompt and then attempt to list a shared directory (from that Command Prompt) on your local hard disk drive (for example: DIR \\LOCALCOMPUTER\SHARENAME), one of the following error messages will appear:

   Access Denied

   -or-

   The system cannot find the file specified.

Running the DIR command on a remote share works without error.

If you attempt to connect to this share by running NET USE * \\LOCALCOMPUTER\SHARENAME the following error message appears:

   The password is invalid for \\LOCALCOMPUTER\SHARENAME.

If you then enter the password, another error message appears:

   System error 1312 has occurred.

   A specified logon session does not exist. It may already have been
   terminated.

These problems do not occur under Windows NT or Windows NT Advanced Server version 3.1, nor do they occur in a manually started Command Prompt under Windows NT 3.5.

WORKAROUND

To connect to a local share from Command Prompt (for example, from a batch file) started by the AT command, you must provide all of the user account information as well as a specific drive letter. For example, entering the following information should allow you to connect:

   net use x: \\server\share /user: username password

You can substitute %USERNAME% for user name so that it uses the name of the currently logged-on user.

Status

Microsoft has confirmed this to be a problem in Windows NT Workstation and Windows NT Server version 3.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


KBCategory: kbtool kbbug3.50
KBSubcategory: ntutil
Additional reference words: 3.50 prodnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 7, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.