Consultor Eletrônico



Kbase 15778: Using OS-COMMAND with UNC Universal Naming Convention in NT
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Using OS-COMMAND with UNC Universal Naming Convention in NT

To use a UNC (Universal Naming Convention) drive mapping
from Progress 4GL on Windows NT, use OS-COMMAND as follows:

OS-COMMAND CMD.EXE /c "<command> \\servername\path"

For example:
OS-COMMAND CMD.EXE /c "dir \\servername\path\".

NOTE: This is required because OS-COMMAND calls a program called
RUNDOS.EXE (which in turn calls COMMAND.COM). NT's native command
line prompt invokes a 32bit executable called CMD.EXE, instead of
COMMAND.COM. Thus OS-COMMAND needs to be told which command
program to execute.

If you do not specify CMD.EXE /c you may see the following errors:
path not found
(293) <file-name> was not found.

Progress Software Technical Support Note # 15778