Generic Documents & Settings?

  • Thread starter Thread starter George
  • Start date Start date
G

George

I have written a small application and am attempting to
send it to users who use Windows XP. The application
relies on Templates for Excel. In Windows XP, Excel
stores templates in C:\Documents and
Settings\"UserName"\Application Data\Microsoft\Templates.

I cannot know the Users Name in advance and have to
customize each install--often with naive users who cannot
even find their templates!

Is there a generic way to reference the UserName?
 
%username% is the environment variable
if this will be substituted in what you are doing.

Also, you may want to consider using
%userprofile%
 
Back
Top