Board index » delphi » Finding the template directory

Finding the template directory

Is there any way to find out which directory the MS Office templates are in,
short of a recursive search on all local drives?

SHGetSpecialFolderLocation(handle, CSIDL_TEMPLATES, pidl) provides a
directory named "...\ShellNew" on Windows 98, and a "...\Template" directory
on Win 2K, neither of which are really used for MS Office templates.

Thanks,

Bill

 

Re:Finding the template directory


<<Bill Keeler:
Is there any way to find out which directory the MS Office
templates are in,

Quote

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\Gene
ral - there's a UserTemplates value, and possibly one for  
SharedTemplates.

--
Deborah Pate (TeamB) http://delphi-jedi.org

  Use Borland servers; TeamB don't see posts via ISPs
  http://www.borland.com/newsgroups/genl_faqs.html

Re:Finding the template directory


Thanks Deborah. I checked there and there is a "Templates" value, which is
set to just "Templates". There's no "UserTemplates" value.
Quote

> HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\Gene
> ral - there's a UserTemplates value, and possibly one for
> SharedTemplates.

> --
> Deborah Pate (TeamB) http://delphi-jedi.org

>   Use Borland servers; TeamB don't see posts via ISPs
>   http://www.borland.com/newsgroups/genl_faqs.html

Other Threads