กระทู้เก่าบอร์ด อ.Yeadram
797 0
URL.หัวข้อ /
URL
ช่วยแก้Code 32bitให้ใช้กับ64bit
รบกวนถามค่ะ
Codeข้างล่างนี้หนูใช้ได้กับ Win32bit แต่ขณะนี้หนูเปลี่ยนมาใช้ Win64bit Codeนี้ใช้ไม่ได้ มันเตือนว่าเครื่องคุณเป็น64bit
คำถาม
จะแก้ไขCodeตรงใหนให้ใช้กับ64bit ได้ค่ะ
ขอบคุณค่ะ
Dim mboardstr As String = Nothing
Dim scope As New ManagementScope("\\" & Environment.MachineName & "\root\cimv2")
scope.Connect()
Dim wmiClass As New ManagementObject(scope, New ManagementPath("Win32_BaseBoard.Tag=""Base Board"""), New ObjectGetOptions())
For Each propData As PropertyData In wmiClass.Properties
If propData.Name = "SerialNumber" Then
mboardstr = Convert.ToString(propData.Value)
End If
ช่วยแก้Code 32bitให้เป็น64bit
Codeข้างล่างนี้หนูใช้ได้กับ Win32bit แต่ขณะนี้หนูเปลี่ยนมาใช้ Win64bit Codeนี้ใช้ไม่ได้ มันเตือนว่าเครื่องคุณเป็น64bit
คำถาม
จะแก้ไขCodeตรงใหนให้ใช้กับ64bit ได้ค่ะ
ขอบคุณค่ะ
Dim mboardstr As String = Nothing
Dim scope As New ManagementScope("\\" & Environment.MachineName & "\root\cimv2")
scope.Connect()
Dim wmiClass As New ManagementObject(scope, New ManagementPath("Win32_BaseBoard.Tag=""Base Board"""), New ObjectGetOptions())
For Each propData As PropertyData In wmiClass.Properties
If propData.Name = "SerialNumber" Then
mboardstr = Convert.ToString(propData.Value)
End If
ช่วยแก้Code 32bitให้เป็น64bit
Time: 0.0855s