How you will connect to windows directory in c#?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between method overriding from method overloading with its functionality?

541


What's the difference between an integer and int?

533


How we convert private assembly into public assembly?

524


What exactly happens when we debug and build the program?

2177


What is the process of Serialization?

562






List down the differences between public, static and void keywords?

468


What is the console on a mac?

476


Is c# code is unmanaged or managed code?

519


Why is main static in c#?

518


How garbage collection deals with circular references.

471


Is string passed by reference in c#?

492


How do I automate my desktop application?

501


Can an interface extend a class c#?

510


Explain dataadapter.update method in .net?

518


How do I format in c#?

499