Consultor Eletrônico



Kbase P42378: OS-COMMAND with UNC displays error 293
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

FACT(s) (Environment):

Windows NT 4.0

SYMPTOM(s):

<file-name> was not found (293)

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

Path not found

CAUSE:

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.

FIX:

The correct syntax is:

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