gpt4 book ai didi

java - 如何使用 bat 文件在 Windows 服务器上卸载 java?

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

我们正在开发一个项目,需要我们远程连接到服务器,并在服务器上安装和卸载java。我们徒劳地尝试了以下方法:

wmic product where "name like 'Java™%%%'" call uninstall  
wmic product where "name = 'java 7 update 1'" uninstall /nointeractive
wmic product where "name = 'java 7 update 2'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 3'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 4'" call uninstall /nointeractive

请告诉我如何使用 bat 文件命令从服务器卸载 java。

最佳答案

如果不使用第 3 方实用程序或启动 WMIC,就不可能从 Windows PC 上卸载 java。我建议您查看第 3 方实用程序

关于java - 如何使用 bat 文件在 Windows 服务器上卸载 java?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39620855/

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