hard disk serial no
-
hi friends i want to retrive hard disk serial no. i use this code Dim strMotherBoardID As String = String.Empty Dim query As New SelectQuery("Win32_BaseBoard") Dim search As New ManagementObjectSearcher(query) Dim info As ManagementObject For Each info In search.Get() strMotherBoardID = info("SerialNumber").ToString() Next Return strMotherBoardID but this code does not work properly. this error show Object reference not set to an instance of an object.
-
hi friends i want to retrive hard disk serial no. i use this code Dim strMotherBoardID As String = String.Empty Dim query As New SelectQuery("Win32_BaseBoard") Dim search As New ManagementObjectSearcher(query) Dim info As ManagementObject For Each info In search.Get() strMotherBoardID = info("SerialNumber").ToString() Next Return strMotherBoardID but this code does not work properly. this error show Object reference not set to an instance of an object.
Hi Try the following link that discribe exacly what you want How to Retrieve the REAL Hard Drive Serial Number[^]
-
Hi Try the following link that discribe exacly what you want How to Retrieve the REAL Hard Drive Serial Number[^]
hi this code work on normal hard disk. but on sata hard disk this code does not work.
-
hi friends i want to retrive hard disk serial no. i use this code Dim strMotherBoardID As String = String.Empty Dim query As New SelectQuery("Win32_BaseBoard") Dim search As New ManagementObjectSearcher(query) Dim info As ManagementObject For Each info In search.Get() strMotherBoardID = info("SerialNumber").ToString() Next Return strMotherBoardID but this code does not work properly. this error show Object reference not set to an instance of an object.
-
Hi. This is a C# forumn. Try the VB forumn for VB help.
Excellence is doing ordinary things extraordinarily well.
dear i have solution in C# plz tell me
-
dear i have solution in C# plz tell me