Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows Directory via .NET framework 2.0

Posted on 2007-11-28
5
Medium Priority
?
133 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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