batch-file - 如何使用 BAT 文件自动创建 msinfo32.nfo 文件?

标签 batch-file

我有一个名为 test.bat 的bat文件,在里面我添加了一行: 这是我到目前为止所尝试的:问题是该文件从未创建。

start /wait msinfo32.exe /s C:\TEMP\test.nfo

当我运行bat文件时,我第二次看到cmd窗口,然后我看到msinfo32.exe程序。但文件 test.nfo 从未在 C:\TEMP

中创建

如何自动创建 test.nfo 以及如何在创建文件后进行创建,以便退出/关闭 msinfo32.exe 程序?

最佳答案

我在 Google 上搜索了命令行选项并进行了测试:

start /wait msinfo32.exe /nfo c:\temp\test.nfo

请参见此处:http://ss64.com/nt/msinfo32.html

关于batch-file - 如何使用 BAT 文件自动创建 msinfo32.nfo 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17849098/

相关文章:

powershell - 使用正确的退出代码报告从 PowerShell 调用批处理文件,同时避免插入符号加倍

windows - 批处理文件创建日志文件

batch-file - 如何使用 .bat 文件运行传递 docker 终端命令

csv - 使用批处理从逗号分隔的csv文件中的最后一列中删除空格

batch-file - "> was unexpected at this time."- 批处理/命令脚本

windows - 等待可执行文件完成运行

batch-file - 批处理 : Checking the number of parameters

powershell - cmd批处理文件删除字符失败

xml - Powershell如何仅替换给定数量的火柴?

windows - 批处理脚本、Powershell 和不触发 Windows 中的 UAC