?
Solved

Windows Directory via .NET framework 2.0

Posted on 2007-11-28
5
Medium Priority
?
132 Views
Last Modified: 2013-11-26
Hello,

Is there any System.? to retreive Windows directory using .NET framework

Many thanks in advance

Herve
0
Comment
Question by:wiederhe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 7

Expert Comment

by:prosh0t
ID: 20367217
Yep, the system.io.directory namespace contains what you will need.

See:
http://msdn2.microsoft.com/en-us/library/system.io.directory.aspx
0
 

Author Comment

by:wiederhe
ID: 20372530
Hello,

Sorry, I don't see any Methods/Function to retreive Windows XP/2000 directory in "system.io.directory"

Regards

Herve
0
 

Author Comment

by:wiederhe
ID: 20374507
Here is the answer to my question:

WINDIR_Path = Environment.GetEnvironmentVariable("SystemRoot")

I'm beginning to wonder what services I'm paying for.
I wasn't very lucky with the answer to my questions so far!!!!!!!!!!!!!!!!!!!!!!!!!!!
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20615324
PAQed with points refunded (50)

Computer101
EE Admin
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

741 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