Kbase 21289: Error 5200 When Accessing the OS Command Processor
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/7/2008 |
|
Status: Verified
SYMPTOM(s):
Error 5200 when accessing the OS command processor
The system environment 'COMSPEC' is not set correctly. (5200)
Trying to run a command through OS-COMMAND or DOS Statements
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
CAUSE:
This occurs because the COMSPEC system variable is set incorrectly or because there is an argument being passed to that system variable value. For instance, one of the methods used to increase the Windows buffer size for environment variables is to assign the following value to the COMSPEC system variable.
set COMSPEC=%systemroot%\System32\cmd.exe /e:2048
This COMSPEC setting causes Progress to display the 5200 error when accessing the OS command interpreter because it does not expect the variable value to receive any parameter. It treats the COMSPEC value as a unique string and tries to load that entire string as a file name.
FIX:
Reset the COMSPEC variable correctly. For example:
set COMSPEC=%systemroot%\system32\command.com
or try a different method to increase the buffer size for environment variables. Under Windows, you can insert the following command into the config.nt file:
SHELL=%systemroot%\system32\command.com /e:2048
or
SHELL=%systemroot%\system32\cmd.exe /e:2048