bitsadmin (windows 內的 wget)

最後更新: 2020-07-21

介紹

BITSAdmin is a command-line tool that you can use to create download or upload jobs and monitor their progress.

 


Usage

 

bitsadmin /transfer <name> [<type>] [/priority <job_priority>] [/ACLflags <flags>] [/DYNAMIC] <remotefilename> <localfilename>

i.e.

bitsadmin /transfer MyDownloadJob /download /priority FOREGROUND "http://example.com/test.bin" "%tmp%\test.bin"

type     # Optional. Sets the type of job, including: /DOWNLOAD (Default), /UPLOAD

# List BG jobs

bitsadmin /list

# To return the state of the job:

bitsadmin /info myDownloadJob /verbose

# refreshing the data every 5 seconds

bitsadmin /monitor