The information in this article applies to:
SUMMARYIf you set your COMSPEC environment variable to point to an invalid command interpreter, and then shell out of any MS-DOS application, your machine will hang. This problem occurs because the file that COMSPEC points to is assumed to be a valid command interpreter and cannot be checked for validity. MORE INFORMATION
This is expected behavior. Because .COM files have no standard file
header structure, they cannot be checked for validity. Therefore,
MS-DOS must assume that whatever the COMSPEC environment variable
points to must be a valid command interpreter, and can do no further
error checking.
SET COMPSPEC=a:\junk.c ; Invalid command.com fileThen enter an MS-DOS application and shell out. Your machine will hang, and you may receive strange error messages. If you are running under OS/2, you will be warned about an invalid command interpreter when you attempt to shell to the operating system. Under OS/2, the system expects an .EXE file to be the command interpreter, and .EXE files have a standard, recognizable structure that can be checked. Additional query words: kbinf 2.20 3.00 3.50 4.00 4.10
Keywords : kb16bitonly |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |