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

If all code is written in a try block and write a catch block with Exception type Exception .In that scenario will all the exceptions catched by that catch block? or any exceptions which will not be caught?

3 Answers   Honeywell,


Which sorting algorithm is best?

0 Answers  


What do you mean by synchronous and asynchronous operations?

0 Answers  


What is the difference between static class and abstract class in c#?

0 Answers  


What is the use of iqueryable in c#?

0 Answers  






What is a namespace server?

0 Answers  


What you mean by delegate in c#?

0 Answers  


What's the difference between System.String and System..StringBuilder in C#?

0 Answers   PUCIT,


What is the signature of a method?

0 Answers  


What is byte c#?

0 Answers  


Can you specify an access modifier for an enumeration?

0 Answers  


What is short circuit logical evaluation?

1 Answers   TCS,


Categories