Solved

how to get  special folders such as Users Application Data

Posted on 2010-11-15
6
846 Views
Last Modified: 2012-05-10
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
Comment
Question by:Kamal Khaleefa
6 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 34138150
have you tried My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
0
 
LVL 17

Accepted Solution

by:
nepaluz earned 500 total points
ID: 34138189
for application data folder try

Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)

and

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)

for application data folder
0
 
LVL 32

Expert Comment

by:Erick37
ID: 34139093
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 32

Expert Comment

by:Erick37
ID: 34139126
0
 
LVL 3

Expert Comment

by:sufianmehmood
ID: 34142897
Environment.SpecialFolder.ApplicationData
0
 
LVL 16

Author Closing Comment

by:Kamal Khaleefa
ID: 34158807
thx
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
This video discusses moving either the default database or any database to a new volume.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now