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 scriptable objects?

0 Answers  


What are the benefits of using generics?

0 Answers  


What does it meant to say “the canonical” form of XML ?

1 Answers  


Why constructor is used in c#?

0 Answers  


can you allow a class to be inherited, but prevent the method from being over-ridden?

0 Answers   Siebel Systems,






Explain the different ways a method can be overloaded?

0 Answers  


What is icollection in c#?

0 Answers  


What is difference between dictionary and hashtable?

0 Answers  


How do I count the length of a string in c#?

0 Answers  


What is a .aspx file?

0 Answers  


What is iqueryable in linq?

0 Answers  


Why do we use dataset in c#?

0 Answers  


Categories