Article ID: 156352 - Last Review: January 19, 2007 - Revision: 1.1 OFF97: Setup Adds Info to PATH Variable in Autoexec.batThis article was previously published under Q156352 On This PageSYMPTOMS
When you install Microsoft Office 97, the Setup program may add information
to the PATH statement in the Autoexec.bat file. This may cause problems
with other programs that rely on information stored in the PATH variable.
MORE INFORMATIONWhy Is Information Added to the PATH Statement?When you install Microsoft Office 97, the Setup program places all of the programs (for example, Microsoft Excel and Microsoft Word) and the dynamic- link library (.dll) files they need in a single folder on the hard disk; by default, this folder is the Program Files\Microsoft Office\Office folder.However, if you perform a Custom installation of Microsoft Office, you have the option of choosing different folders for the Microsoft Office programs. If you choose this option and install any of the programs into separate folders, the Setup program adds the information to the PATH statement in the Autoexec.bat file. Specifically, Setup adds the path to the default file location, Program Files\Microsoft Office\Office. Setup adds the information to the PATH statement because the Microsoft Office programs are designed to look in the following locations for .dll files that they need:
For example, if you perform a Custom installation of Microsoft Office 97 and place the Office programs in the following locations: Program Location --------------------------------------------------------------- Microsoft Excel C:\Program Files\Microsoft Office\Office Microsoft Word C:\Program Files\Microsoft Office\Office Microsoft Access C:\Program Files\Microsoft Office\Access Microsoft PowerPoint C:\Program Files\Microsoft Office\Office Required .dll files* C:\Program Files\Microsoft Office\Office * You cannot change the location for the .dll files. When you start Microsoft Access, it looks for the .dll files that it needs in the following locations:
How Is the New Information Added to the PATH Statement?If you use the Setup program to install a program to a different folder, Setup adds the path to the default folder to the beginning of the PATH variable. For example, if the PATH statement is:
PATH=C:\Win95;C:\Win95\Command;C:\Mydata;C:\Otherapp
The Setup program modifies the PATH statement as follows:
PATH=C:\PROGRA~1\MICROS~4\OFFICE;C:\Win95;C:\Win95\Command;C:\Mydata;
C:\Otherapp
NOTE: The path to the default folder is added in the 8.3 MS-DOS naming
convention. This format minimizes the length of the PATH variable. Also,
the number following "MICROS~" may not be 4; it varies depending on what
other folders are present in the Program Files folder.
To find the correct MS-DOS file name, do the following:
What Problems Might I Encounter Due to Changes in the PATH Variable?
190023
(http://support.microsoft.com/kb/190023/EN-US/
)
How to Edit the Autoexec.bat File in Microsoft Windows 98
| Article Translations
|
Back to the top
