Code: Select all
set "downloadLink=http://www.chrysocome.net/downloads/78057a17668093943717ee3c48c669fb/ddrelease64.exe"
bitsadmin /transfer myDownloadJob /download /DYNAMIC /priority high %downloadLink% "%cd%\ddrelease64.exe"
This is more verbose script that is downloading the same file (This script does not download anything somehow, although it should)
This script seems to not output any file after Job is completed. I'm unsure why, or what to do.
Code: Select all
@ECHO OFF
bitsadmin /Reset
bitsadmin /create "myDownloadJob"
::bitsadmin /SETPROXYSETTINGS "myDownloadJob" NO_PROXY
set "downloadLink=http://www.chrysocome.net/downloads/78057a17668093943717ee3c48c669fb/ddrelease64.exe"
bitsadmin /addfile "myDownloadJob" %downloadLink% "%cd%\ddrelease64.exe"
bitsadmin /resume myDownloadJob
bitsadmin /complete myDownloadJob
Code: Select all
BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.
0 out of 0 jobs canceled.
BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.
Created job {C46693A4-DE33-4DC0-B37E-2E03E6634E47}.
BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.
Added http://www.chrysocome.net/downloads/78057a17668093943717ee3c48c669fb/ddrelease64.exe -> C:\Users\Juozas\Desktop\ddrelease64.exe to job.
BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.
Job resumed.
BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.
Job completed.
Press any key to continue . . .