Link to home
Start Free TrialLog in
Avatar of wiederhe
wiederhe

asked on

Windows Directory via .NET framework 2.0

Hello,

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

Many thanks in advance

Herve
Avatar of prosh0t
prosh0t

Yep, the system.io.directory namespace contains what you will need.

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

ASKER

Hello,

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

Regards

Herve
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!!!!!!!!!!!!!!!!!!!!!!!!!!!
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial