Partilhar via


Bitsadmin /addfile

 

Applies To: Windows Vista, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 8

Adds a file to the specified job.

Syntax

bitsadmin /AddFile <Job> <RemoteURL> <LocalName>

Parameters

Parameter

Description

Job

The job's display name or GUID

RemoteURL

The URL of the file on the server.

LocalName

The name of the file on the local computer. LocalName must contain an absolute path to the file.

Examples

Add a file to the job. Repeat this call for each file you want to add. If multiple jobs use myDownloadJob as their name, you must replace myDownloadJob with the job's GUID to uniquely identify the job.

C:\>bitsadmin /addfile myDownloadJob https://downloadsrv/10mb.zip c:\10mb.zip

Additional references

Command-Line Syntax Key