收集自己所关注的技术
Imports SystemImports System.ManagementModule Module1Public Sub Main()Dim disk As ManagementObject = New ManagementObject( "win32_logicaldisk.deviceid=""c:""")disk.Get()Console.WriteLine("硬盘容量大小(bytes): " & disk("Size"))End SubEnd Module
Imports System
Imports System.Management
Module Module1
Public Sub Main()
Dim disk As ManagementObject = New ManagementObject( "win32_logicaldisk.deviceid=""c:""")
disk.Get()
Console.WriteLine("硬盘容量大小(bytes): " & disk("Size"))
End Sub
End Module
发表评论
没有评论:
发表评论