CmdID

CmdID / Commands / bitsadmin

bitsadmin setnotifycmdline

Sets the command-line command that runs after the job finishes transferring data or after a job enters a specified state. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Sets the command-line command that runs after the job finishes transferring data or after a job enters a specified state. NOTE: This command isn't supported by BITS 1.2 and earlier.

bitsadmin /setnotifycmdline <job> <program_name> [program_parameters]

To run Notepad.exe at the completion of the job named myDownloadJob

bitsadmin /setnotifycmdline myDownloadJob c:\winnt\system32\notepad.exe NULLIdentify

To show the EULA text in Notepad.exe, at the completion of the job named myDownloadJob

bitsadmin /setnotifycmdline myDownloadJob c:\winnt\system32\notepad.exe notepad c:\eula.txtIdentify
jobThe job's display name or GUID.
program_nameName of the command to run when the job completes. You can set this value as NULL, but if you do, program_parameters must also be set to NULL.
program_parametersParameters that you want to pass to program_name. You can set this value as NULL. If program_parameters isn't set to NULL, then the first parameter in program_parameters must match the program_name.