How can I get internal HDD_DETLAIS = SerialNumber, Model, Manufacturer,TotalHeads ...... etc.
Please help me.. Now my problem is my code run ok, but when I insert external HDD or pen drive then showing the last counting device Details please help ....
i want to show only internal HHD device means OS loaded disk "C" drive
Thanks
Dim HDD_DETLAIS As String
Dim HDD As New ManagementObjectSearcher("select * from Win32_DiskDrive")
For Each HDDDET In HDD.Get
HDD_DETLAIS = HDDDET("SerialNumber") + " Model-" + HDDDET("Model") + " Manufacturer-- " + HDDDET("Manufacturer") ' + " TotalHeads - " + hd("TotalHeads") '+ " Signature - " + hd("Signature")
TextBox1.Text = HDD_DETLAIS
Next