Microsoft KB Archive/170264: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - ">" to ">")
Line 47: Line 47:
<div class="indent">
<div class="indent">


\\<servername&gt;\<sharename&gt;\%username%
\\<servername>\<sharename>\%username%




Line 74: Line 74:


* C:\Program Files\Microsoft Office\Templates
* C:\Program Files\Microsoft Office\Templates
* \\<servername&gt;\<sharename&gt;\templates
* \\<servername>\<sharename>\templates





Revision as of 19:30, 20 July 2020

Knowledge Base


Office 97 Programs Do Not Expand Environment Variables

Article ID: 170264

Article Last Modified on 2/20/2007



APPLIES TO

  • Microsoft Zero Administration Kit for Windows NT Workstation 4.0



This article was previously published under Q170264

SYMPTOMS

The paths used in Microsoft Office 97 policy templates (except the Personal folder) do not accept environment variables. For example, setting the user template folder in Policy Editor to the following path

\\<servername>\<sharename>\%username%


generates the following error message when you start an Office 97 program:

The User Templates folder "\\servername\sharename\%username%" was not found. Do you want to create this folder?

CAUSE

When they read paths from the registry, Office 97 programs do not expand environment variables (such as %USERPROFILE% or %USERNAME%).

RESOLUTION

Use fully qualified path names similar to one of the following:

  • C:\Program Files\Microsoft Office\Templates
  • \\<servername>\<sharename>\templates


STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: 1.00 %userprofile% %username% variable

Keywords: kbprogramming KB170264