1

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

4

1 回答 1

0

我基本上在 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;
于 2012-01-16T23:39:25.797 回答