SYS0123 Error Trying to Run a Nonexistent File Remotely

ID: Q60950


The information in this article applies to:
  • Microsoft LAN Manager, version 2.0


SUMMARY

If you try to run a program from a remote drive, but the program does not exist and the filename provided includes a period (.), the error returned [from DosExecPgm()] is SYS0123, which is incorrect and less than descriptive. The error returned is as follows:

SYS0123: A file name or volume label contains an incorrect character.


MORE INFORMATION

Instead, the following error should be returned:

SYS1041: The name specified is not recognized as an internal or external command, operable program or batch file.
This is the error that is returned if you try to execute a nonexistent file from a local drive, or if you attempt to run a nonexistent file from a remote drive, but leave off the extension. For example, the following commands (assuming that there is no TASK.COM, TASK.CMD, or TASK.EXE to be found) return the correct (SYS1041) error code:

   [C:\] task.bar

   [C:\] \\someserver\scratch\task

   [C:\] x:\task 
However, these commands return the following incorrect (SYS0123) error code:

   [C:\] \\someserver\scratch\task.exe

   [C:\] x:\task.bar 
Microsoft has confirmed this to be a problem in OS/2 LAN Manager version 2.0. This problem was corrected in LAN Manager version 2.1.

Additional query words: 2.00 sys0123 remote drive

Keywords :
Version : :2.0
Platform :
Issue type :


Last Reviewed: November 11, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.