Consultor Eletrônico



Kbase P11290: Debugging why COMSPEC variable cannot be found.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/5/2003
Status: Unverified

GOAL:

Debugging why COMSPEC variable cannot be found.

FACT(s) (Environment):

Windows 32 Intel

FIX:

COMSPEC specifies the secondary command interpreter. This shell variable holds the full pathname for finding command.com.

1. Make sure to Set COMSPEC variable within autoexec.bat startup file, by specifying the FULL pathname of where the command.com file is located.

2. Check the permission rights on the command.com file . Make sure the file can be executed.

3) When setting the COMSPEC variable, make sure that there are no extra spaces right after COMMAND.COM

4) Review the registry to ensure that there is only 1 COMSPEC environment variable set within the registry. If there are multiple, this can impact what is being called by the COMSPEC variable.

5. If there is no COMSPEC variable, then MSDOS tries to find command.com in the root directory of the current drive.