|
-
Feb 18th, 2006, 12:28 PM
#1
Thread Starter
Fanatic Member
How to know the hard drives installed?
Hello,
I know how to get all the drives on a computer.. (Directory.GetLogicalDrives)
but is there a way know the physical drives on the computer? (not floopy and
cd or dvd...)
thanks!
-
Feb 18th, 2006, 01:12 PM
#2
Re: How to know the hard drives installed?
I don't know why you'd even want to do this. I can't think of one design that would require something like this so you may want to double check your design.
Having said that, you're going to want to take a look at WMI. There are examples posted in the VB.Net CodeBank. It should be fairly straight forward to convert those to C#
-
Feb 18th, 2006, 01:24 PM
#3
Thread Starter
Fanatic Member
Re: How to know the hard drives installed?
I want to do it in order to search for a file in my computer...
-
Feb 18th, 2006, 08:35 PM
#4
Re: How to know the hard drives installed?
You can test a drive's type using WMI. Search the forum and you'll find examples of doing just this.
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
|