Variable that holds Documents and Settings user directory?

R

Randy K

Is there a VB/system variable that holds the current user's "Documents
and Settings" user directory? I would like to save an error log file
in a folder below the user's folder. Sometimes when I login I'm
smithjoe and other times I'm smithjoe.000

Thanks,
Randy K
kreuzrsk at dfw.com
 
P

Peter Hewett

Hi Randy K

Try:
MsgBox Environ$("Userprofile")

HTH + Cheers - Peter


(e-mail address removed) (Randy K), said:
 

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

Top