BITS CONTROLS Sample

Summary

This sample demonstrates the usage of BITS APIs to control and configure BITS options.

Program flow

CONTORL.cpp builds on the concepts established in the DOWNLOADS.cpp example, it is recommended that you review DOWNLOADS.cpp prior to reviewing this sample – it will aid understanding of the program flow.

The key difference between the two samples is the use of BITS APIs to enable peer caching and to set a minimum size for a cache on the test machine (to act as server to other peers).

Key Concepts

Build/Configuration instructions

Basic Usage

  1. Select a file on a remote computer that your test machine has access to.
  2. Select a location and name for the downloaded file to occupy on the test machine.
  3. Enter the command CONTROL.exe <RemoteName> <LocalName>
  4. When the CONTROL completes or fails, you will be notified.
  5. Use the command: bitsadmin /cache /list /verbose to see what files are held in your test machines cache to service other peers.

System configuration