Skip to content

硬件信息获取工具 (Hardware Information Collector)

Pre-release
Pre-release

Choose a tag to compare

@xingyings xingyings released this 12 Sep 06:31
· 4 commits to main since this release
5cb13e6

程序名称: 硬件信息收集工具

功能描述:
获取CPU信息: 程序使用Windows管理工具命令(wmic)来获取CPU的名称和当前时钟速度。
获取内存信息: 通过wmic命令获取计算机系统的总物理内存大小。
获取显卡信息: 使用wmic命令收集显卡的名称、驱动程序日期和驱动程序版本。
保存信息到文件: 将收集到的硬件信息整理成文本文件,并保存到指定位置。
使用说明:
运行程序,程序将自动执行上述操作。
信息将被保存到位于 C:\Program Files (x86)\xingying\error.log 的文件中。
程序完成后,将在控制台打印出信息保存的文件路径。
适用范围:
操作系统:Windows
Python版本:必须支持subprocess和os模块
注意事项:
程序运行需要管理员权限,以便访问系统硬件信息。
请确保日志文件路径 C:\Program Files (x86)\xingying\error.log 存在,并且程序具有写入权限。
若要更改保存路径,请修改程序中的 file_path 变量。

Program Name: Hardware Information Collector
Function Description:
Get CPU Information: The program uses the Windows Management Instrumentation Command (wmic) to retrieve the CPU’s name and current clock speed.
Get Memory Information: It employs the wmic command to obtain the total physical memory size of the computer system.
Get Graphics Card Information: The wmic command is used to collect the name, driver date, and driver version of the graphics card.
Save Information to File: The collected hardware information is organized into a text file and saved at a specified location.
Usage Instructions:
Run the program, and it will automatically perform the above-mentioned operations.
The information will be saved to the file located at C:\Program Files (x86)\xingying\error.log.
After the program completes, the file path where the information is saved will be printed in the console.
Applicable Scope:
Operating System: Windows
Python Version: Must support the subprocess and os modules
Notes:
The program requires administrative privileges to access system hardware information.
Ensure that the log file path C:\Program Files (x86)\xingying\error.log exists and the program has write permissions.
To change the save path, modify the file_path variable in the program.