[分享]批处理电脑硬件信息检测工具-带详细信息输出功能-破解版
声明:批处理是修改自大神的作品,出处:[url]http://www.bathome.net/thread-38259-1-1.html[/url]由于原作者加了许多加密信息,如果随意修改会闪退。多或少一个字符,或者行数不对,就会闪退。
经过几个小时的摸索,终于实现修改,并完善了显卡信息显示功能。
由于显卡信息是基于GPU-Z,所以基本上独显(A卡,N卡)和核显(intel,ATI)都能完美读取出厂商信息,同时加入显卡序列号,显卡DDR以及显存颗粒以及显卡ID等信息的输出。
[img=655,427]https://z3.ax1x.com/2021/09/09/hOpkgU.png[/img]
[img=0,429]https://z3.ax1x.com/2021/09/09/hOPC4I.jpg[/img]
[img=0,431]https://z3.ax1x.com/2021/09/09/hOPVKS.jpg[/img]
下载地址:[url]https://sanli.lanzoui.com/iHPmktt1mne[/url] 密码:booc
硬件信息-修改破解版.bat 为修改后的版本
硬件信息.bat 为原作者文件,有需要尝试破解的,可以了解一下,基本读懂代码将会受益匪浅。 如果,能不让“GPU-Z”那个界面弹出来,就显得更专业了的! [code]call get_hardware_info
Function get_hardware_info()
txt = ""
Set dic_main = CreateObject("Scripting.Dictionary")
dic_main.Add "磁盘", "Win32_DiskDrive"
dic_main.Add "主板", "Win32_BaseBoard"
dic_main.Add "内存", "Win32_PhysicalMemory"
dic_main.Add "处理器", "Win32_Processor"
dic_main.Add "显卡", "Win32_VideoController"
dic_main.Add "声卡", "Win32_SoundDevice"
dic_main.Add "网卡", "Win32_NetworkAdapter"
arr_main_Props = Array("Name", "Manufacturer", "Model", "Capacity", "Size", "Speed", "SerialNumber", "ProcessorId")
Set oWMISrvEx = GetObject("winmgmts:root/CIMV2")
For Each k In dic_main.keys
txt = txt & vbCrLf & String(50, "=") & vbCrLf
txt = txt & "[" & k & "]" & vbCrLf
sWQL = "Select * From " & dic_main(k)
Set oWMIObjSet = oWMISrvEx.ExecQuery(sWQL)
For Each oWMIObjEx In oWMIObjSet
txt = txt & String(30, "=") & vbCrLf
For Each oWMIProp In oWMIObjEx.Properties_
If Not IsNull(oWMIProp.Value) Then
If IsArray(oWMIProp.Value) Then
For n = LBound(oWMIProp.Value) To UBound(oWMIProp.Value)
For Each prop In arr_main_Props
If UCase(prop) = UCase(oWMIProp.Name) Then
txt = txt & oWMIProp.Name & "(" & n & ")" & ":" & vbCrLf & Trim(oWMIProp.Value(n)) & vbCrLf
End If
Next ' prop
Next
Else
For Each prop In arr_main_Props
If UCase(prop) = UCase(oWMIProp.Name) Then
txt = txt & oWMIProp.Name & ":" & vbCrLf & Trim(oWMIProp.Value) & vbCrLf
End If
Next ' prop
End If
End If
Next
Next
txt = txt & vbCrLf
Next ' k
fpath = "d:\1.txt"
CreateObject("Scripting.FileSystemObject").CreateTextFile(fpath, True, False).Write (txt)
MsgBox "done"
CreateObject("WScript.Shell").Run fpath
End Function ' get_hardware_info
[/code] 这是个大佬 可以精简下嘛,只收集这些
电脑类型、品牌 、型号、年龄 ;
操作系统 处理器品牌、型号;
内存大小、在用个数\插槽个数、品牌、频率、代数 ;
硬盘个数、品牌、型号、容量、转速;
显示器品牌、个数、型号、尺寸 ;
主板品牌、型号;
显卡,是否独显,品牌、型号、显存。 奇怪的是,你这个在我电脑上不能查看到网卡信息,准确说是到网卡这里就闪退了,但原作可以 下载地址失效了,能补一下吗?
页:
[1]