C:\Documents and Settings\User\Application Data

ADO DOT NET

Centurion
Joined
Dec 20, 2006
Messages
160
Hello,

1. In which Windows versions "Application Data" path is available?

2. In Windows versions that do not have this path, what should I do?

Thanks :)
 
1. Potentially none, this could be move to another location even for the OS' that use it by default.

2. You should always use Environment.GetSpecialFolder(...) to find this kind of thing e.g.
Visual Basic:
Dim s As String
s = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
'or
s = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
should get you the path you are after.
 
Pleaseee!
Help me! :(
That code works fine, but returns:
C:\Documents and Settings\User\Local Settings\Application Data
-
I wanna get:
C:\Documents and Settings\User\Application Data
-
So I changed:
CSIDL_LOCAL_APPDATA
to:
CSIDL_APPDATA
But I get error:

CSIDL_APPDATA : Variable not found!

Why this occurs?:(
 
Last edited:
Back
Top