A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
How to get all logical drives on a system? |
On Wednesday, July 14th 2004 at 12:00 AM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 4 with 3 votes) |
||
|
By calling a static method from System.Environment called GetLogicalDrives(). This returns a string array that you can easily iterate. Suppose you have a ListBox and a button:
|
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsGood and very useful for me, Thank You
Great stuff, <a href=\"http://www.simplytheticket.com\">Shakeel</A>
Thanks
saved me some time getting it to work myself.
Very useful. Thanks.
how to get logical drive on the client side using asp.net
hi rabih ayoub.
i want same u..
how to get the all drives of the client system.
if u got that send me..
Hi Guys:
Can anyone tell me how to get network folders/mapped drives thru C#. Environment.GetLogicalDrives will only get Machine's Local Drives.
Please help me out.
Thanks in Advance.
Srizzler.
Iterate trough a String "abce....xyz" with .ToCharArray() in a foreach loop. Then simply try with the new System.IO.DriveInfo(letter) if the Drive exists
AyrA
http://ayra.ch
simpliest way: DriveInfo.GetDrives()
it's very useful
Thanks dude
DriveInfo[] drives = DriveInfo.GetDrives();
foreach (DriveInfo strDrive in drives)
{}
Related Knowledge Base Articles
Related Source Code
Related Tutorials
C# Job Search