Article ID: 129128 - Last Review: February 20, 2007 - Revision: 2.2

SUBST Command Does Not Execute in AUTOEXEC.NT

This article was previously published under Q129128
Expand all | Collapse all

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.

APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows NT Advanced Server 3.1
  • Microsoft Windows NT Workstation 3.1
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
Keywords: 
KB129128
 

Article Translations