bitsadmin getfilestotal
Retrieves the number of files in the specified job. Windows commands reference
On Windows
Windows
bitsadmin /getfilestotal <job>
To retrieve the number of files included in the job named myDownloadJob
bitsadmin /getfilestotal myDownloadJobIdentifyjobThe job's display name or GUID.