SYS0123 Error Trying to Run a Nonexistent File Remotely (60950)



The information in this article applies to:

  • Microsoft LAN Manager 2.0

This article was previously published under Q60950

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.

Modification Type:MajorLast Reviewed:9/30/2003
Keywords:KB60950