MORE INFORMATION
Why 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:
- The current folder
- The Windows\System folder
- The Windows folder
- The folders in the PATH statement
If you move a program to a different folder, many of the .dll files
required by the program remain in the default folder. In order for a
program to find the .dll files it needs, Setup adds the path to the default
folder to the PATH variable.
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:
- The current folder (C:\Program Files\Microsoft Office\Access)
- The Windows\System folder
- The Windows folder
- The folders in the PATH statement
The required .dll files are not installed in the current folder, the
Windows\System folder, or the Windows folder. However, because Setup added
the path to the default folder to the PATH variable, Microsoft Access can
find the .dll files it needs.
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:
- In Windows Explorer, right-click the Microsoft Office folder.
- Click Properties.
- Note the MS-DOS name in the Properties dialog box.
- Click OK.
What Problems Might I Encounter Due to Changes in the PATH Variable?
- If the required changes to the PATH variable would cause it to exceed
128 characters in length, you will receive the following error message
during Setup:
The PATH statement in your Autoexec.bat file is too long for Setup to
modify.
Before your new software will run correctly, you must edit the
Autoexec.bat file manually to add the following folder to your PATH
statement:
C:\Program Files\Microsoft Office\Office
If this error message is displayed, when Setup is complete, edit the
PATH statement in the Autoexec.bat file (using Sysedit or Notepad) and
add the required folder name to your PATH.
NOTE: When you edit the PATH, it cannot exceed 128 characters in length.
As an alternative, you can remove Microsoft Office 97 completely from
the computer, and then reinstall it using the default file locations.
Although adding information to the PATH statement allows the Microsoft
Office programs to find the .dll files that they need, it may cause
problems when you use Dynamic Data Exchange (DDE) to communicate with a
program that is not in its default folder.
If this is the case, add the path of the program you moved to the PATH
statement in the Autoexec.bat file. For example, using the Microsoft
Access case above, you add the following information:
C:\PROGRA~1\MICROS~4\ACCESS
to the PATH statement. Other programs are then able to use DDE to
communicate with Microsoft Access. - Although adding information to the PATH statement allows the Microsoft
Office programs to find the .dll files that they need, it may cause
problems when you use Dynamic Data Exchange (DDE) to communicate with a
program that is not in its default folder.
If this is the case, add the path of the program you moved to the PATH
statement in the Autoexec.bat file. For example, using the Microsoft
Access case above, you add the following information:
C:\PROGRA~1\MICROS~4\ACCESS
to the PATH statement. Other programs are then able to use DDE to
communicate with Microsoft Access.
For additional information about updating the Autoexec.bat file, click the article number below
to view the article in the Microsoft Knowledge Base:
190023 How to Edit the Autoexec.bat File in Microsoft Windows 98