The command bitadmin addfilewithranges in Windows

The command bitadmin addfilewithranges adds files to the specified task. BITS downloads the specified range from the remote file.

The command bitadmin addfilewithranges adds files to the specified task. BITS downloads the specified range from the remote file.

Syntax

 bitsadmin / AddFileWithRanges 

Parameters

ParameterDescriptionJob Display name of the task or GUID. RemoteURL RemoteURL is the URL of the file on the server. LocalName LocalName is the name of the file on the local computer. LocalName must contain the absolute path for the file. RangeList RangeList is a list of length and offset pairs separated by commas. Use a colon to separate the offset value from the length value.

Additional information

Token eof is a valid length value in offset and internal length pairs . It instructs the service to read to the end of the specified file.

Note: The AddFileWithRanges command will not work with the error message 0x8020002c, when the zero length range is specified with another scope of the same deviation, such as: C: bits> bitsadmin / addfilewithranges j2 http : //bitsdc/dload/1k.zip c: 1k.zip 100: 0,100: 5.

Error message: Unable to add file to job - 0x8020002c . List of byte ranges contains some overlapping ranges, not supported.

Alternatives: Don't specify zero first range of lengths. For example: bitsadmin / addfilewithranges j2 http:///bitsdc/dload/1k.zip c: 1k.zip 100: 5,100: 0.

For example

The following example requires BITS to convert 100 bytes from offset 0, 100 bytes from offset 2000 and the remaining bytes from 5000 offset to the end of the file.

 C:> bitsadmin / addfilewithranges http:///downloadsrv/10mb.zip c: 10mb.zip "0: 100,2000: 100,5000: eof" 

See more:

  1. Command bitsadmin addfileset in Windows
  2. Bitsadmin addfile command in Windows
  3. The bcdedit command in Windows
Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile