F
Frank Ashley
The code below returns all files on the local machine. I want to scan a
different machine and have tried to use the ManagmentPath class but I can't
see where I would fit it into the current code. Can anybody help?
Dim mySelect As New SelectQuery("select * from cim_datafile")
Dim myResults As New ManagementObjectSearcher(mySelect)
Dim myProperty As PropertyData
For Each wmiObject As ManagementObject In myResults.Get()
For Each myProperty In wmiObject.Properties
lblInfo.Text &= myProperty.Name & Space(10) &
Convert.ToString(myProperty.Value) & vbCrLf
Next
Next wmiObject
Thank you
Frank Ashley
different machine and have tried to use the ManagmentPath class but I can't
see where I would fit it into the current code. Can anybody help?
Dim mySelect As New SelectQuery("select * from cim_datafile")
Dim myResults As New ManagementObjectSearcher(mySelect)
Dim myProperty As PropertyData
For Each wmiObject As ManagementObject In myResults.Get()
For Each myProperty In wmiObject.Properties
lblInfo.Text &= myProperty.Name & Space(10) &
Convert.ToString(myProperty.Value) & vbCrLf
Next
Next wmiObject
Thank you
Frank Ashley