is there a way to get the "my documents" path....
(e.g. c:\my documents and settings\[username]\)
but sometimes the "my documents" is like
c:\my documents and settings\all users\ or
c:\my documents and settings\administrator\
Printable View
is there a way to get the "my documents" path....
(e.g. c:\my documents and settings\[username]\)
but sometimes the "my documents" is like
c:\my documents and settings\all users\ or
c:\my documents and settings\administrator\
Hi
download the code at
http://www.thescarms.com/vbasic/specialfolders.asp
Hope this helps...
Here's a simpler way:But it's not 100% reliable tough :)VB Code:
Debug.Print Environ("HOMEDRIVE") & Environ("HOMEPATH")
thx what's the most reliable way then??Quote:
Originally Posted by gavio
The most reliable way is the Windows API way:
Retrieve Windows Shell Folders (Best Practice)
The one RB posted... well, Environ() is reliable, but can be changed by the user - so... :)
solved thanks very much!