gpt4 book ai didi

html - 批量系统信息?

转载 作者:行者123 更新时间:2023-12-04 02:30:01 25 4
gpt4 key购买 nike

有什么方法可以批量将以下信息输出到带有表格的 HTML 文件,或者如果这不可能输出到文本文档?

  • 操作系统
  • 计算机名(网络)
  • 内存量
  • CPU 速度
  • 当前登录用户
  • 有什么建议吗?

如果其中一些不可行,那很好,但我知道大多数是,因为我的学校有一个这样的批处理文件,用于帮助台,但他们将其转换为 exe,所以我无法查看编码。 (有一个漂亮的 HTML 表格的输出。如果有人能提供帮助,我们将不胜感激。

最佳答案

下面的代码将为您提供系统的完整信息(删除引号):

    : FULL SYSTEM INFO    
: START CMD

: Set the dialog title
title FULL SYSTEM INFO

@echo off

: Display nothing but add whitespace
echo.

: Displaying text
echo Exporting System Info...

: Using the SYSTEMINFO command and export it directly into a text file
SYSTEMINFO>INFO.txt

: Display nothing but add whitespace
echo.

: Displaying text
echo INFO.txt Exported!

: Open the newly exported file in notepad
notepad.exe INFO.txt

: Wait on user
pause

: STOP CMD

关于html - 批量系统信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21718164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com