How you will connect to windows directory in c#?

Answers were Sorted based on User's Feedback



How you will connect to windows directory in c#?..

Answer / parmjit

We can get path of windows director from the following
function call

Environment.SystemDirectory.Substring(0,
Environment.SystemDirectory.LastIndexOf("\\"))

Is This Answer Correct ?    3 Yes 2 No

How you will connect to windows directory in c#?..

Answer / anatoliy

Directory.GetParent(System.Environment.SystemDirectory);

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Sharp Interview Questions

what are the contents of an assembly ?

0 Answers  


What is Partial class? What purpose we use it?

6 Answers   ACS, TATA,


What is a generic in c#?

0 Answers  


List down the commonly used types of exceptions in .net

0 Answers  


What is winforms c#?

0 Answers  






Define a class and an object?

0 Answers  


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

0 Answers   Satyam,


What is ienumerable <> in c#?

0 Answers  


How long will it take to learn c sharp?

0 Answers  


What is exe in c#?

0 Answers  


What is xaml in c#?

0 Answers  


what are the differences b/w structure and class?

10 Answers  


Categories