Find Path

R

Rafi

How do I find the the complete path to the My Documents folder? My users
will have their My Documents folder in C:\Documents and Settings\xxxxx\My
Documents and I need to find the value of the xxxx for each user that opens
the application.

Thanks for your help
 
S

stefan hoffmann

hi Rafi,
How do I find the the complete path to the My Documents folder? My users
will have their My Documents folder in C:\Documents and Settings\xxxxx\My
Documents and I need to find the value of the xxxx for each user that opens
the application.
You can use Environ("USERPROFILE"). The "C:\Documents and Settings\"
part of the profile path may be different for each user on one system.


mfG
--> stefan <--
 
Top