WMI .mof Files Do Not Compile When Include Directives Use Relative Paths (296706)
The information in this article applies to:
- Microsoft Windows Management Instrumentation 1.5, when used with:
- the operating system: Microsoft Windows 2000
This article was previously published under Q296706 SYMPTOMS
A Windows Management Instrumentation (WMI) .mof file may fail to successfully compile when it has an #include directive with a relative path specified. This issue affects .mof files that are compiled manually with the Mofcomp tool (Mofcomp.exe), and .mof files that are compiled automatically as part of the WMI automatic recovery process.
CAUSE
The .mof compiler dynamic link library (Mofd.dll) does not properly handle relative paths. When an #include directive with a relative path is encountered, the compiler uses the process current folder setting instead of the path of the parent .mof to arrive at the included file's absolute path.
RESOLUTIONTo resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name Platform
-----------------------------------------------------------------
01-Jun-2001 18:32:32 1.50.1085.58 139,332 Mofd.dll Intel
Using the Hotfix InstallerNOTE: You can use this method only for Intel-based computers with Windows 2000 installed.
- Copy the hotfix program file (Q296706.exe) to a local folder on your computer or to a share on your network.
- Run the Q296706.exe file, and then follow the directions you receive.
- Restart your computer.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/23/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbbug kbenv kbfix kbSysAdmin kbWin2000PreSP3Fix kbWin2000sp3fix KB296706 |
---|
|