[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 860
  • Last Modified:

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?
0
Kamal Khaleefa
Asked:
Kamal Khaleefa
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
have you tried My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
0
 
nepaluzCommented:
for application data folder try

Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)

and

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

for application data folder
0
 
Erick37Commented:
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)
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Erick37Commented:
0
 
sufianmehmoodCommented:
Environment.SpecialFolder.ApplicationData
0
 
Kamal KhaleefaInformation Security SpecialistAuthor Commented:
thx
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now