Kbase P95978: OS-COMMAND hangs launching a DOS executable.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/30/2009 |
|
Status: Verified
SYMPTOM(s):
OS-COMMAND hangs launching a DOS executable.
The same executable launched from a Command Prompt box works fine.
FACT(s) (Environment):
Windows
Progress 9.x
OpenEdge 10.x
CAUSE:
OS-COMMAND invokes the RUNCMD.EXE executable, while the Command Prompt box invokes COMMAND.COM.
The DOS executable in question is not compatible with RUNCMD.EXE, while it has no problems running in conjunction with COMMAND.COM.
FIX:
Change the OS-COMMAND statement so that COMMAND.COM is invoked. For example, from the following:
OS-COMMAND SILENT myCommand.
to the following:
OS-COMMAND SILENT VALUE("COMMAND /C myCommand").