[VB.Net]取得電腦基本訊息(含偵測網路是否有通)
'網絡狀況 If My.Computer.Network.Ping("172.18.48.215") Then Label2.Text = "暢通" Else Label2.Text = "不通" End If '機器名稱 Label3.Text = Environment.MachineName 'OS名稱 Label5.Text = My.Computer.Info.OSFullName 'Symantec病毒碼日期 Label10.Text = Microsoft.VisualBasic.Left(Microsoft.VisualBasic.Right(My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs", "DEFWATCH_10", Nothing), 12), 8) 'Inter Explorer版本 Label11.Text = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer", "Version", Nothing) 'CPU Label12.Text = Microsoft.VisualBasic.Trim(My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "ProcessorNameString", Nothing)) '主板 Label14.Text = M...