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?
 
Roger

Please repost. Your message came through as "Message
Unavailable"

thanks
George
 
%username% is the environment variable
if this will be substituted in what you are doing.

Also, you may want to consider using
%userprofile%
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top