bitsadmin replaceremoteprefix
根据需要将作业中所有文件的远程 URL 从 oldprefix 更改为 newprefix。
语法
bitsadmin /replaceremoteprefix <job> <oldprefix> <newprefix>
参数
参数 | 说明 |
---|---|
作业 | 作业的显示名称或 GUID。 |
oldprefix | 现有 URL 前缀。 |
newprefix | 新 URL 前缀。 |
例子
若要将名为 myDownloadJob的作业中的所有文件的远程 URL 从 http://stageserver 更改为 http://prodserver。
bitsadmin /replaceremoteprefix myDownloadJob http://stageserver http://prodserver