bitsadmin setnotifycmdline
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.
Syntax
bitsadmin /setnotifycmdline <job> <program_name> [program_parameters]
Parameters
Parameter | Description |
---|---|
job | The job's display name or GUID. |
program_name | Name 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_parameters | Parameters 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. |
Examples
To run Notepad.exe at the completion of the job named myDownloadJob:
bitsadmin /setnotifycmdline myDownloadJob c:\winnt\system32\notepad.exe NULL
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.txt
Related links
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για