Microsoft KB Archive/102064

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 08:20, 20 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base

Limitations Using SET Commands in AUTOEXEC.BAT File

Article ID: 102064

Article Last Modified on 11/1/2006


  • Microsoft Windows NT Advanced Server 3.1
  • Microsoft Windows NT Workstation 3.1
  • Microsoft Windows NT Advanced Server 3.1

This article was previously published under Q102064


When you log on to a Windows NT machine, Winlogon processes the AUTOEXEC.BAT file to set your environment variables and the PATH.

However, the following restrictions apply to all SET statements:

  • Conditional set ("IF") statements are not processed.
  • Environment variables cannot be removed (unset). For example, "SET WORKDIR=" does not remove the WORKDIR environment variable.

In short, only SET and PATH statements are processed.

Additional query words: prodnt unset

Keywords: kbenv KB102064