Link to home
Create AccountLog in
Avatar of Kamal Khaleefa
Kamal KhaleefaFlag for Kuwait

asked on

how to get special folders such as Users Application Data

hi
i have created a setup file (exe ) installer and im installing some folders in
  Users Application Data folder
how i can read the path for that folder
im using vb.net 2008

how i can know the path in xp , vista , windows
also how i can know the operating system in code?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

have you tried My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
ASKER CERTIFIED SOLUTION
Avatar of nepaluz
nepaluz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
OS version Info:

'Version numbers
String.Format("{0}.{1}.{2}.{3}", OSVersion.Version.Major.ToString, OSVersion.Version.Minor.ToString, OSVersion.Version.Build.ToString, OSVersion.Version.MajorRevision.ToString)

'Version Description
String.Format("{0}", OSVersion.VersionString)
Environment.SpecialFolder.ApplicationData
Avatar of Kamal Khaleefa

ASKER

thx