[英]How to check .Net version which is installed on my machine using wmic command in batch file
I just want to check .Net version which is installed on my machine using wmic command in batch file. 我只想使用批处理文件中的wmic命令检查安装在我的计算机上的.Net版本。
Below command i used , but its not working. 下面的命令我用过,但是不起作用。
wmic /namespace:\\root\cimv2 path win32_product where "name like '%%Microsoft .NET Framework 4 Extended%%'" get version
Can anyone please help me out from this. 谁能帮我这个忙。
Thanks In Advance. 提前致谢。
If you don't have that version, you should get a message saying "No Instance(s) Available" 如果没有该版本,则应该收到一条消息,提示“没有可用的实例”
I would recommend 我会推荐
wmic /namespace:\\root\cimv2 path win32_product where "name like '%%Microsoft .NET%%'" get version
This way you can see all versions that are installed including 4.0 这样,您可以查看已安装的所有版本,包括4.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.