SUBST Command Does Not Execute in AUTOEXEC.NT (129128)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows NT Server 3.1
  • Microsoft Windows NT Workstation 3.1
  • Microsoft Windows NT Advanced Server
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0

This article was previously published under Q129128

SYMPTOMS

When you include Win32 binary commands in the AUTOEXEC.NT file in Windows NT, they do not execute. The AUTOEXEC.NT file runs only 16-bit DOS binary commands.

CAUSE

These commands are Win32 binary commands and should be executed in a batch file or a user's login script.

WORKAROUND

To work around this problem, use either of the following methods:

  • Create a batch file including the command. Next, create a program item for the batch file in the Startup group of Program Manager.
  • Include the command in a user's login script.
The following examples describe SUBST and NET command usage:

  • SUBST U: C:\UTL

    NOTE: Subst associates a path with a drive letter.
  • NET use lpt<x>:\\<printserver>\<sharename> /persistent:yes

    NOTE: Net use establishes a persistent connection using NET.EXE.

Modification Type:MajorLast Reviewed:5/6/2003
Keywords:KB129128