410328
asked on
How to detect XP users document folder and appl data folder
Hi,
In VB6 I'm trying to write some application data to my {app}/temp path, but that only works in WinXP if you are administrator. If you are a normal user you get the access denied message.
So, to work around this problem, I'm trying to detect in VB6 the folders...
{username} documents
{shared} documents for all users
...to add data created by the user and write my application-depended data.
Who can help me with this? In code or links to information about this.
With greetings, A.C.
In VB6 I'm trying to write some application data to my {app}/temp path, but that only works in WinXP if you are administrator. If you are a normal user you get the access denied message.
So, to work around this problem, I'm trying to detect in VB6 the folders...
{username} documents
{shared} documents for all users
...to add data created by the user and write my application-depended data.
Who can help me with this? In code or links to information about this.
With greetings, A.C.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This will show you all possible dta that you could get with that function:
Sub test()
Dim i As Integer, s As String
i = 1
Do
s = Environ(i)
i = i + 1
Debug.Print s
Loop While s <> ""
End Sub