【问题标题】:Retrieving BITS Version in C#在 C# 中检索 BITS 版本
【发布时间】:2023-03-15 15:25:01
【问题描述】:

如何使用 C# .NET 4.0 检索 BITS(后台智能传输服务)版本。

【问题讨论】:

标签: c# .net-4.0 microsoft-bits


【解决方案1】:

我基本上是在 System32 中检索到 QMgr.dll 的 dll 版本,因为这是 BITS 的 dll。

const string bitsDll = "QMgr.dll";

var bitsDllInfo = FileVersionInfo.GetVersionInfo(Path
    .Combine(System.Environment.SystemDirectory, bitsDll));

updateDeliveryStatusRequest.BitsVersion = bitsDllInfo.FileVersion;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-17
    • 2018-06-25
    • 2018-07-22
    • 2013-01-15
    • 1970-01-01
    • 1970-01-01
    • 2017-12-01
    相关资源
    最近更新 更多