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

Explain about c# language.

0 Answers  


What is a singleton unity?

0 Answers  


What is the example of predicate?

0 Answers  


What is value type and reference type?

3 Answers   TCS,


What are some of the commonly used commands in sqlcommand?

0 Answers  






What are the applications of c#?

0 Answers  


What?s the difference between System.String and System.StringBuilder classes?

3 Answers  


What is a bool in c#?

0 Answers  


What is class method c#?

0 Answers  


Why is c# a good programming language?

0 Answers  


What is boolean conditions in c#?

0 Answers  


Define an assembly in .net?

0 Answers  


Categories