Hi all,
I need to get the system of directory with the help of C#, means if windows is installed in C Drive in windows folder, then I need to get c:\windows and so on.
Thanks.
Printable View
Hi all,
I need to get the system of directory with the help of C#, means if windows is installed in C Drive in windows folder, then I need to get c:\windows and so on.
Thanks.
like this ...
VB Code:
string system32 = Environment.GetFolderPath(Environment.SpecialFolder.System); Console.WriteLine("the System32 folder is located at :- " + system32); string windows = system32.Substring(0 , system32.LastIndexOf(@"\")); Console.WriteLine("the Windows folder is located at :- " + windows);
Thank you very much for your quick reply. I dont have VS .NET this time, tomorrow I will check it in office.