Windir Environment Variable Lost if Batch File Run from *.PIF (148948)
The information in this article applies to:
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
This article was previously published under Q148948 SYMPTOMS
When 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.
RESOLUTION
At the beginning of the batch file, place an entry that reads:
This restores the variable to the environment.
Modification Type: | Major | Last Reviewed: | 12/16/2003 |
---|
Keywords: | KB148948 |
---|
|