Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Bitsadmin /setnotifycmdline

Updated: April 17, 2012

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

Sets the command-line command that will run when the job finishes transferring data or when a job enters a state..

bitsadmin /SetNotifyCmdLine <Job> <ProgramName> [ProgramParameters]


Parameter Description


The job's display name or GUID


Name of the command to run when the job completes.


Parameters that you want to pass to ProgramName.

You can specify NULL for ProgramName and ProgramParameters. If ProgramName is NULL, ProgramParameters must be NULL.

If ProgramParameters is not NULL, then the first parameter in ProgramParameters must match ProgramName.

The following example sets the command-line command used by the service to run notepad when the job named myDownloadJob completes.

C:\>bitsadmin /SetNotifyCmdLine myDownloadJob c:\winnt\system32\notepad.exe NULL
C:\>bitsadmin /SetNotifyCmdLine myDownloadJob c:\winnt\system32\notepad.exe "notepad c:\eula.txt"

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft