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

How more than one version of an assembly can keep in same place?

521


Does console.writeline() stop printing when it reaches a null character within a string?

525


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

482


For methods inside the interface why can’t you specify the accessibility modifier?

559


What is console application with example?

504






Difference between call by value and call by reference in C#?

529


What is difference between constants and read-only?

458


In a single .NET DLL how many classes it contains?

518


List the different stages of a thread?

490


What is anonymous class in c#?

532


Explain the Abstract class in c#.net

561


Can you use foreach iteration on arrays in c#?

617


Can we inherit partial class in c#?

515


What types of object can I throw as exceptions?

547


How to implement a singleton design pattern in c#?

484