Knowledge Base

SUBST Command Does Not Execute in AUTOEXEC.NT

Article ID: 129128

Article Last Modified on 2/20/2007


APPLIES TO


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.

Additional query words: prodnt 3.10

Keywords: KB129128