Consultor Eletrônico



Kbase P1184: OS-COMMAND with Windows 2000 / NT Terminal Server 3
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/12/2002
Status: Unverified

FACT(s) (Environment):

Windows NT 4.0 Terminal Server Edition

SYMPTOM(s):

Attempting to use the NET USE from OS-COMMAND

Windows Error: The name specified is not recognized as an internal or external command, operable program or batch file.

Cannot modify the source code.

CAUSE:

The issue with the net use command is due to the fact that the %systemroot% directory for Windows NT Terminal Server is WTSRV and not Windows NT.

Windows NT TS goes to %systemroot%\system32 to find the (net.exe) executable, but the file is located only in winnt\system32.

FIX:

Add the directory c:\winnt\system32 to the PATH.