Solved

how to get  special folders such as Users Application Data

Posted on 2010-11-15
6
849 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 70

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
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

860 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