gpt4 book ai didi

windows - 如何检查某些产品是否使用批处理文件安装

转载 作者:可可西里 更新时间:2023-11-01 11:26:02 25 4
gpt4 key购买 nike

我正在尝试查找 Windows 中是否安装了某些软件。我在下面找到了查找产品是否已安装的命令

wmic product where name="Symantec Endpoint Protection"

它的输出是No Instance(s) Available.

我试过但没有成功将命令输出存储在批处理文件的变量中

最佳答案

你也可以这样做:

@echo off
echo Wait a while .....
wmic product where name="Symantec Endpoint Protection" > %tmp%\tmp.txt
Cmd /U /C Type %tmp%\tmp.txt > %tmp%\Symantec.txt
Start "" %tmp%\Symantec.txt

关于windows - 如何检查某些产品是否使用批处理文件安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36060134/

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