Solved

how to get  special folders such as Users Application Data

Posted on 2010-11-15
6
847 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

3 Use Cases for Connected Systems

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

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 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

12 Experts available now in Live!

Get 1:1 Help Now