If anyone has a code snippet that would be fine too, but I'm not opposed to
spending additional hours trying to wrestle this to death...I'm a slow
learner, but eventually brute force attempts get me something that works...

I had a template that worked fine on Win95 and Win98 (untested on Win2K).
When we were upgraded to XP, one of the things that broke was the
installation routine (tries to write to the template directory) and the
other thing that broke was my ability to create and append information to a
.txt file on the desktop, because in XP the desktop has a different path (I
was hardcoding the path before).

Given the numerous versions of both Win OS and Word that are all operating
now (I need to be backward compatible to Word97 on Win95, and upward to the
most current stuff) what is the most reliable method to identify where a
.dot should install itself (yes, I use a routine so if the activated dot is
_not_ in the template directory, it installs a copy of itself then closes)
and also to locate the path to the desktop of whatever machine it is on?

Many thanks,
Keith

--
The enclosed questions or comments are entirely mine and don't represent the
thoughts, views, or policy of my employer. Any errors or omissions are my
own.

ini or reg- where can I find path to templates and desktop? by Joost

Joost
Sun Aug 29 16:08:27 CDT 2004

Hi,

I see that malcom has covered the template quesion.

In my example you also see some code to get the desktop
Path have fun:

Sub T()
Dim fsShell
Set fsShell = CreateObject("WScript.Shell")
MsgBox fsShell.SpecialFolders("Desktop")

MsgBox Options.DefaultFilePath(wdUserTemplatesPath)
Set fsShell = Nothing
End Sub

Enjoy,
Joost Verdaasdonk

>-----Original Message-----
>If anyone has a code snippet that would be fine too, but
I'm not opposed to
>spending additional hours trying to wrestle this to
death...I'm a slow
>learner, but eventually brute force attempts get me
something that works...
>
>I had a template that worked fine on Win95 and Win98
(untested on Win2K).
>When we were upgraded to XP, one of the things that
broke was the
>installation routine (tries to write to the template
directory) and the
>other thing that broke was my ability to create and
append information to a
>..txt file on the desktop, because in XP the desktop has
a different path (I
>was hardcoding the path before).
>
>Given the numerous versions of both Win OS and Word that
are all operating
>now (I need to be backward compatible to Word97 on
Win95, and upward to the
>most current stuff) what is the most reliable method to
identify where a
>..dot should install itself (yes, I use a routine so if
the activated dot is
>_not_ in the template directory, it installs a copy of
itself then closes)
>and also to locate the path to the desktop of whatever
machine it is on?
>
>Many thanks,
>Keith
>
>--
>The enclosed questions or comments are entirely mine and
don't represent the
>thoughts, views, or policy of my employer. Any errors or
omissions are my
>own.
>
>
>.
>