Microsoft KB Archive/97438

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word for Windows, MultiMedia Edition, version 2.0a-CD
 * Microsoft Word for Windows, Video and Sound Edition, version 2.0c

SUMMARY
When you start Word for Windows, Multimedia Edition or Video and Sound Edition, you may receive the following error message:

Word cannot use the TOOLS-PATH specified in the WIN.INI file because it is not valid. This error message occurs if either of the following is true:
 * The Word and Bookshelf CD-ROM is not in the CD-ROM drive when you start Word.

-or-
 * The Word and Bookshelf CD-ROM is in the CD-ROM drive, but you have not accessed the drive since you turned on your computer or since you placed the CD-ROM in the drive.

These conditions cause the error because the Microsoft CD-ROM Extensions (MSCDEX) has not yet read the CD-ROM. As a result, MSCDEX cannot provide the information Word requests to verify the TOOLS-PATH setting at startup. Use one of the following workarounds to avoid this error message:

Workaround 1
Access the CD-ROM drive before you start Word. This causes MSCDEX to become aware of the CD-ROM contents. Use one of the following methods to access the CD-ROM drive:

  Method 1: Add the following two lines to the AUTOEXEC.BAT file before the line that starts Windows :     :  where is the drive letter of the CD-ROM drive and is the drive letter where Windows is located. For example: e:     c:  Note: This method does not work with all CD-ROM drivers currently available. If it does not work, use Method 2 below. 

-or-   Method 2: Add the following line to the AUTOEXEC.BAT file before the line that starts Windows dir :\ > nul where is the drive letter of the CD-ROM drive. For example: dir e:\ >nul 

-or-
 * Method 3: Before you start Word, open Windows File Manager and select the CD-ROM drive letter. This causes MSCDEX to read the CD-ROM.

Workaround 2
Do the following to copy the online &quot;Word User's Guide&quot; file to the hard disk and run it from that location instead of from the CD-ROM:

 Quit Word.  Copy WINWORD.HLP and WINWORD.IND from the WORD directory on the Word and Bookshelf CD-ROM to the Word for Windows program directory on the hard disk. To do this from an MS-DOS command prompt, type the following copy :\word\winword.hlp :\winword copy :\word\winword.ind :\winword where is the drive letter for the CD-ROM drive and is the drive letter where Word for Windows is located. For example: copy e:\word\winword.hlp c:\winword copy e:\word\winword.ind c:\winword  Remove the TOOLS-PATH line from the [Microsoft Word 2.0] section of your WIN.INI file. Word no longer checks the CD-ROM drive to verify the TOOLS-PATH, so the error message no longer occurs. Restart Word. When you choose Word User's Guide from the Help menu, Word uses the User's Guide file from the hard disk instead of from the CD-ROM.</li></ol>

Workaround 3
Do the following to copy the original Word for Windows help file to the hard disk and use it instead of the online Word User's Guide:

<ol> Quit Word.</li>  Copy WORDHELP.BAK from the WORD directory on the Word and Bookshelf CD-ROM to the Word for Windows program directory on the hard drive and name the file WINWORD.HLP. To do this, from an MS-DOS command prompt, type the following copy :\word\wordhelp.bak :\winword\winword.hlp where is the drive letter for the CD-ROM drive and is the drive letter where Word for Windows is located. For example: copy e:\word\wordhelp.bak c:\winword\winword.hlp </li> Remove the TOOLS-PATH line from the [Microsoft Word 2.0] section of your WIN.INI file. Word no longer checks the CD-ROM drive to verify the TOOLS-PATH, so the error message no longer occurs.</li> Restart Word. When you choose Word User's Guide from the Help menu, Word uses the standard Word for Windows help file from the hard disk instead of the online Word User's Guide from the CD-ROM.</li></ol>

Workaround 4
Change the HelpIndex macro so it establishes the TOOLS-PATH setting when you choose Word User's Guide from the Help menu. When you exit the Word User's Guide, the HelpIndex macro removes the TOOLS-PATH setting. If TOOLS-PATH setting currently exists in the [Microsoft Word 2.0] section of the WIN.INI file that points to the CD-ROM drive, change this setting to the appropriate directory on the hard drive or remove it completely.

Replace the existing text in the HelpIndex global macro with the following:

Sub MAIN OldToolsPath$ = GetProfileString$(&quot;Microsoft Word 2.0&quot;, &quot;TOOLS-PATH&quot;) ToolsOptionsWinini .Application = &quot;Microsoft Word 2.0&quot;, \ .Option = &quot;TOOLS-PATH&quot;, .Setting = &quot;E:\WORD&quot;, .Set A$ = Files$(&quot;E:\*&quot;) Super HelpIndex If OldToolsPath$ = &quot;&quot; Then

ToolsOptionsWinini .Application = &quot;Microsoft Word 2.0&quot;, \ .Option = &quot;TOOLS-PATH&quot;, .Delete Else ToolsOptionsWinini .Application = &quot;Microsoft Word 2.0&quot;, \ .Option = &quot;TOOLS-PATH&quot;, .Setting = OldToolsPath$, .Set EndIf End Sub Note: This macro refers to the CD-ROM drive as drive E:. If your CD- ROM drive is a different drive, be sure to change &quot;E:&quot; in the macro to the correct drive letter.

MORE INFORMATION
Multimedia Word and Bookshelf supplies the &quot;Microsoft Word User's Guide&quot; as a 5 MB online help file, called the Online User's Guide. To conserve disk space, Word runs this file from the CD-ROM by default.

When you launch Word, the TOOLS-PATH setting in the [Microsoft Word 2.0] section of the WIN.INI file instructs Word to access the CD-ROM instead of the Word program directory for the online help file. Word checks the validity of the TOOLS-PATH directory before it allows you to use Word. All of the installation options in the MultiMedia Word Setup program add the following TOOLS-PATH setting to your WIN.INI

TOOLS-PATH=E:\WORD where E: is the drive letter of the CD-ROM drive. The Microsoft CD-ROM Extensions (MSCDEX) is the interface between MS-DOS and the CD-ROM driver. MSCDEX caches information from the CD-ROM in memory and then uses this cache to respond to requests from applications, such as the request from Word to verify the TOOLS-PATH directory.

If the CD-ROM has not been accessed since you turned on the computer or since you changed disks in the CD-ROM drive, the MSCDEX cache contains no information about the current CD-ROM.

When Word verifies the TOOLS-PATH directory, it does not force MSCDEX to read the CD-ROM; instead MSCDEX checks its cache for the existence of the TOOLS-PATH directory. As a result, the TOOLS-PATH directory is considered to be invalid unless MSCDEX reads the CD-ROM and updates its cache before Word attempts to verify the TOOLS-PATH directory.

Reference(s):

&quot;Microsoft Word for Windows User's Guide,&quot; version 2.0, page 810
 * }

-

Last reviewed: July 30, 1997

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.