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.
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:
- Command bitsadmin addfileset in Windows
- Bitsadmin addfile command in Windows
- The bcdedit command in Windows
You should read it
- Bitsadmin getfilestransferred and bitsadmin commands getminretrydelay
- Order bitsadmin getnotifycmdline, getnotifyflags, getnotifyinterface
- The bitsadmin getbytestransferred and bitsadmin commands getcompletiontime in Windows
- Bitsadmin complete command in Windows
- Bitsadmin command getproxylist, getproxyusage and getreplydata
- The bitsadmin geterrorcount command and bitsadmin getfilestotal in Windows
- Bitsadmin command getaclflags and bitsadmin getbytestotal in Windows
- Bitsadmin create command in Windows
May be interested
- The bitsadmin geterrorcount command and bitsadmin getfilestotal in Windowsthe bitadmin geterrorcount command retrieves the number of times the specified task has generated a temporary error. the bitsadmin getfilestotal command retrieves the number of files in the specified task.
- The bitsadmin getbytestransferred and bitsadmin commands getcompletiontime in Windowsthe bitsadmin getbytestransferred command retrieves the number of bytes transferred for the specified task. the bitadmin command getcompletiontime retrieves the time that the specified task has completed the data transfer.
- Sub-commands in nslookup Windows command (Part 2)nslookup set all command, nslookup set class, nslookup set d2, alias nslookup set debug, nslookup set domain, nslookup set port, and nslookup set querytype in windows
- Sub-commands in the nslookup Windows command (Part 1)nslookup command exit, finger nslookup, nslookup help, nslookup ls, nslookup lserver, nslookup root, commandlooklook server, nslookup set in windows
- Sub-commands in nslookup Windows command (Part 3)nslookup set recurse, nslookup set retry, nslookup set root, nslookup set search, nslookup set srchlist, nslookup set timeout, nslookup set type, nslookup set vc, and nslookup view in windows
- Command at in Windowsthe at command schedules commands and programs to run on a computer at a specified time with a specific date. you can only use the command at when schedule service is running.
- Set command in Windowsthe set command helps show, set or remove cmd.exe environment variables.
- Del command in Windowsthe del command deletes one or more files. this command is the same as the eraser command.
- 10 useful commands in Windows you should knowcommand prompt is used to execute batch files, perform tasks quickly, help you troubleshoot and solve some windows problems when the system crashes. however, not all commands in windows are useful and must be done regularly. with the 10 command lines in the following article it is very useful even if you are not an administrator.
- Order bitsadmin getnotifycmdline, getnotifyflags, getnotifyinterfacetoday's article will introduce 3 commands: bitsadmin getnotifycmdline, bitsadmin getnotifyflags and bitsadmin getnotifyinterface in windows.