473,327 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Drive Information

How do I find information on a Drive such as Manufacturer, etc. I know how
to get the Drive Type, Size, etc. but not the information the appears in the
Properties Window when you right click on a Drive.
--
Dennis in Houston
Nov 21 '05 #1
4 1346
Dennis,

That should be in the sample I have placed in a message to you.

:-)

Cor
Nov 21 '05 #2
Doh,

Sorry Dennis, wrong readed.

Cor
Nov 21 '05 #3
However when you change that like this (LogicalDrive to DiskDrive), you
should not be far from what you want.

\\\
Dim searcher As New ManagementObjectSearcher _
("SELECT * FROM Win32_DiskDrive")
Dim ManObjOp As ManagementObject
If searcher.Get.Count > 0 Then
For Each ManObjOp In searcher.Get
Dim win32 As String = "Win32_DiskDrive='" &
ManObjOp("Name").ToString & "'"
Dim ManObjLogD As New ManagementObject(win32)
For Each diskProperty As PropertyData In
ManObjLogD.Properties
If Not diskProperty.Value Is Nothing Then
Console.WriteLine _
("{0} = {1}", diskProperty.Name, diskProperty.Value)
End If
Next
Next
End If
///
I hope this helps?

Cor
Nov 21 '05 #4
I got it to working but didn't see the Disk Manufacturer's name in the
propertys. I'll try it again. Thanks. I'll let you know how it works out.

"Cor Ligthert" wrote:
However when you change that like this (LogicalDrive to DiskDrive), you
should not be far from what you want.

\\\
Dim searcher As New ManagementObjectSearcher _
("SELECT * FROM Win32_DiskDrive")
Dim ManObjOp As ManagementObject
If searcher.Get.Count > 0 Then
For Each ManObjOp In searcher.Get
Dim win32 As String = "Win32_DiskDrive='" &
ManObjOp("Name").ToString & "'"
Dim ManObjLogD As New ManagementObject(win32)
For Each diskProperty As PropertyData In
ManObjLogD.Properties
If Not diskProperty.Value Is Nothing Then
Console.WriteLine _
("{0} = {1}", diskProperty.Name, diskProperty.Value)
End If
Next
Next
End If
///
I hope this helps?

Cor

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rhino | last post by:
For DB2 V8 on Windows/Linux/Unix, the idea of having the Information Center online and accessible from IBM via the Internet is probably the best approach for most users. It keeps the information...
0
by: petro | last post by:
I am trying to deploy an asp.net application to my web server. My application uses system.data.oledb to connect to an oracle database. On my development machine I have the oracle client 10g...
1
by: NWhite | last post by:
Is that a VB.NET class that will give drive inforation or the VB6 FileSystemObject the only way to get drive information? I have looked in the System.IO Namespace but I don't seem to find...
4
by: Scott Glasgow | last post by:
I have the Microsoft Visual Basic .NET Deluxe Learning Edition from Microsoft and am trying to reinstall it after a hardware system crash requiring complete reformat/reinstall of Windows XP Pro and...
4
by: robert d via AccessMonster.com | last post by:
When my app starts up, it creates a temporary database. This temp database is created from a 'model' database that is in the same folder as the application. Because there is a model, the creation...
4
by: Zeeshan | last post by:
hi, i want to get the hard drive number for example if if have drive letter C it should tell me Disk number as 1 and suppose if i have another hard disk attach to my system having letter J, the by...
2
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some...
13
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I am actually trying to get the UNC path of the main module of a process running from a mapped drive, and I am trying to do this from a service. The ProcessModule class only provides the full path...
2
by: Sin Jeong-hun | last post by:
Below is the code in Managed C++. It was originally written in C, and posted somewhere around the Internet (I forgot where I copied this code), and I changed it into Managed C++. This code returnes...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.