|
-
Jan 24th, 2005, 02:39 PM
#1
Thread Starter
Frenzied Member
Get System Directory [URGENT]
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.
-
Jan 24th, 2005, 03:02 PM
#2
Re: Get System Directory [URGENT]
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);
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jan 24th, 2005, 03:09 PM
#3
Thread Starter
Frenzied Member
Re: Get System Directory [URGENT]
Thank you very much for your quick reply. I dont have VS .NET this time, tomorrow I will check it in office.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|