Solved

Windows Directory via .NET framework 2.0

Posted on 2007-11-28
5
131 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

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 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