我会使用BITS(入门):
Background Intelligent Transfer Service (BITS) is a component of modern
Microsoft Windows operating systems that facilitates prioritized,
throttled, and asynchronous transfer of files between machines using
idle network bandwidth.
从Windows 7开始,Microsoft 建议将PowerShell cmdlet用于BITS。
% import-module bitstransfer
% Start-BitsTransfer http://path/to/file C:\Path\for\local\file
您也可以通过COM使用BITS ,请参见此处的VBScript示例。还有“ bitsadmin ”,这是一个控制下载的命令行工具:
BITSAdmin is a command-line tool that you can use to create download or
upload jobs and monitor their progress.
在Windows 7中bitsadmin.exe
指出它本身已被弃用。不过:
% bitsadmin.exe /transfer "NAME" http://path/to/file C:\Path\for\local\file