سؤال

How can the the BITS (Background Intelligent Transfer Service) version be retrieved using C# .NET 4.0.

هل كانت مفيدة؟

المحلول

I basically retrieved the dll version of QMgr.dll in System32, since this is the dll for BITS.

const string bitsDll = "QMgr.dll";

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

updateDeliveryStatusRequest.BitsVersion = bitsDllInfo.FileVersion;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top