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

What is the use of ispostback in c#?

645


Do loops in c#?

653


Does c# support multiple class inheritance?

797


What is array and its types in c#?

684


what is a enumeration in c#

744






What is the difference between hashtable and dictionary in c#?

654


What is the size of a decimal?

785


Can we inherit abstract class in c#?

684


Can constructor have return type c#?

800


Write the syntax for catching an exception in c#?

639


What is the resgen.exe tool used for?

713


Differentiate between object pooling and connection pooling in c#?

738


What are the Types of compatabilities and explain them

680


What is application object in c#?

670


What is difference between variable and property in c#?

596