/ Published in: VB.NET

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Imports System Imports System.Management Namespace ConsoleApplication1 Friend Class Program Public Shared Sub Main() Dim winos As String = "Select Name from Win32_OperatingSystem" Dim mos As New ManagementObjectSearcher(winos) For Each mo As ManagementObject In mos.Get() Console.WriteLine("OS Name: {0}", mo("Name")) Next mo Console.ReadLine() End Sub End Class End Namespace
URL: http://www.devcurry.com/2010/10/programmatically-determine-operating.html
Comments
