Kbase P128105: OS-COMMAND does not accept long path or files names or names with spaces
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  05/09/2008 |
|
Status: Unverified
SYMPTOM(s):
OS-COMMAND START command does not accept long path names or files names
OS-COMMAND START command does not accept path names or files names with spaces
OS-COMMAND START VALUE ("\\LONG SERVER\LONG SHARE\LONG DIR\LONG FILE") will fail
Windows command prompt reads: <pathname> is no recognized as an internal or external command, operable program or batch file.
FACT(s) (Environment):
Windows NT 32 Intel/Windows 2000
Progress/OpenEdge Versions
OpenEdge Category: Language (4GL/ABL)
CAUSE:
A problem in the parser in Windows NT Server 4.0 causes this command to fail.
FIX:
The string to be passed to OS-COMMAND must be modified from: "\\LONG SERVER\LONG SHARE\LONG DIR\LONG FILE" to: \\"LONG SERVER"\"LONG SHARE"\"LONG DIR"\"LONG FILE"
This limitation does not apply to the parameters passed to the program to be started.For instance, the following statement opens a text file in notepad:OS-COMMAND VALUE("C:\~"My Notepad Application~"\notepad.exe C:\My Text Folder\my text.txt").