在C#中定义可以通过WMI读取的文件版本 [英] Defining file version in C# that can be read with WMI

查看:104
本文介绍了在C#中定义可以通过WMI读取的文件版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用WMI在CIM_DataFile中使用select *检索远程服务器上内部服务的文件版本,其中name =".

问题是我们的内部win32服务已编程

如何在可以通过WMI访问的C#服务中设置文件版本?

Hi, i'm using WMI to retrieve the file version of inhouse services on remote servers using select * from CIM_DataFile where name = ""

The problem is that our inhouse win32 services programmed in C# have no version using WMI.

How can I set the file version in a C# service that can be accessed through WMI?

推荐答案

只需将其设为服务中的属性,然后调用服务以返回当前版本
Simply make it a property in the service and call the service to return the current version


这篇关于在C#中定义可以通过WMI读取的文件版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆