Windir Environment Variable Lost if Batch File Run from *.PIFLast reviewed: May 9, 1996Article ID: Q148948 |
The information in this article applies to:
SYMPTOMSWhen you run a batch file from a *.PIF file on a Windows NT computer, the environment variable "Windir" is not retained in the environment. Some applications make use of this variable, and it is normally available in the Windows NT environment. If it is not available, the application may fail.
RESOLUTIONAt the beginning of the batch file, place an entry that reads:
SET windir=%systemroot%This restores the variable to the environment.
|
KBCategory: kbenv
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |