Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: directives in c# for .net version Pin
Mazdak30-Jan-05 6:02
Mazdak30-Jan-05 6:02 
GeneralRe: directives in c# for .net version Pin
Clickok30-Jan-05 6:17
Clickok30-Jan-05 6:17 
QuestionMonitor all key press??? Pin
bmk_shepherd30-Jan-05 2:46
bmk_shepherd30-Jan-05 2:46 
AnswerRe: Monitor all key press??? Pin
Stefan Troschuetz30-Jan-05 4:13
Stefan Troschuetz30-Jan-05 4:13 
GeneralUpdateResource API Call Pin
Wayne Phipps30-Jan-05 2:45
Wayne Phipps30-Jan-05 2:45 
GeneralRe: UpdateResource API Call Pin
Michael Dunn30-Jan-05 8:09
sitebuilderMichael Dunn30-Jan-05 8:09 
GeneralRe: UpdateResource API Call Pin
Wayne Phipps1-Feb-05 9:07
Wayne Phipps1-Feb-05 9:07 
GeneralDirectory.GetLogicalDrives() Question Pin
QzRz30-Jan-05 2:22
QzRz30-Jan-05 2:22 
Hi...

I want to get a info about the logical drives on the computer...
My code looks like this..

private void logiskdrev()
{
string[] Drives = Directory.GetLogicalDrives();
foreach(string drive in Drives)
{
MessageBox.Show(drive.ToString());
}
}

but that only gives me the name/path (ex. "c:\", "i:\")

Can anyone tell/show me how to get info about the type! (like if it is a hdd, cd-drive or flashdisk)
And...
If you could tell/show me how to get the name too? (I have a drive called windows (c:\)) how can i get the name of the drive??

Thanks

QzRz
GeneralRe: Directory.GetLogicalDrives() Question Pin
mav.northwind30-Jan-05 2:42
mav.northwind30-Jan-05 2:42 
GeneralRe: Directory.GetLogicalDrives() Question Pin
CiNN30-Jan-05 12:40
CiNN30-Jan-05 12:40 
GeneralRe: Directory.GetLogicalDrives() Question Pin
mav.northwind30-Jan-05 20:19
mav.northwind30-Jan-05 20:19 
Generalget child of windows Pin
students552 university29-Jan-05 17:12
students552 university29-Jan-05 17:12 
GeneralRe: get child of windows Pin
eggie529-Jan-05 19:20
eggie529-Jan-05 19:20 
GeneralHTTP Post Request Pin
notacake29-Jan-05 12:41
notacake29-Jan-05 12:41 
GeneralRe: HTTP Post Request Pin
eggie529-Jan-05 13:08
eggie529-Jan-05 13:08 
GeneralRe: HTTP Post Request Pin
notacake30-Jan-05 1:06
notacake30-Jan-05 1:06 
GeneralRe: HTTP Post Request Pin
leppie30-Jan-05 3:04
leppie30-Jan-05 3:04 
GeneralRe: HTTP Post Request Pin
notacake30-Jan-05 3:07
notacake30-Jan-05 3:07 
QuestionGenerating Buttons dynamically at runtime? Pin
E6AD29-Jan-05 12:36
E6AD29-Jan-05 12:36 
AnswerRe: Generating Buttons dynamically at runtime? Pin
therealmccoy29-Jan-05 17:29
therealmccoy29-Jan-05 17:29 
GeneralRe: Generating Buttons dynamically at runtime? Pin
E6AD5-Feb-05 16:56
E6AD5-Feb-05 16:56 
GeneralEditing problem in Datagrid Pin
29-Jan-05 10:29
suss29-Jan-05 10:29 
GeneralRe: Editing problem in Datagrid Pin
xrado24-Jun-05 0:31
xrado24-Jun-05 0:31 
Questionhow to send same request to different terminals at the same time and wait for the response... Pin
just_starting29-Jan-05 9:14
just_starting29-Jan-05 9:14 
AnswerRe: how to send same request to different terminals at the same time and wait for the response... Pin
mav.northwind29-Jan-05 11:19
mav.northwind29-Jan-05 11:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.