Start-BitsTransfer 的 Destination 字段不是强制性的
Start-BitsTransfer's Destination field is not mandatory
我在调用 Start-BitsTransfer
时指定 -Description $dest
而不是 -Destination $dest
的脚本中有一个错误。
对于一个小文件,它没有很快出错 / 运行,而对于一个大文件,它需要一段时间。
因此,我认为该文件已复制到我的机器上;我只是找不到它被复制到哪里...
问题
- 为什么目的地不是必填字段?
- 默认情况下/当未指定目标时,文件去哪里?
你问题第一部分的尖刻答案可能是 "because Microsoft said so"。由于我没有参与决策制定,因此无法给您明确的答案,但 cmdlet documentation 的示例 7 提到
The destination path cannot use wildcard characters. The destination path supports only a relative directory, a rooted path, or an implicit directory (the current directory).
所以我怀疑该参数是可选的,以允许传输文件"here"(到当前工作目录)而不必明确指定目的地,即为了使用简单。
我在调用 Start-BitsTransfer
时指定 -Description $dest
而不是 -Destination $dest
的脚本中有一个错误。
对于一个小文件,它没有很快出错 / 运行,而对于一个大文件,它需要一段时间。
因此,我认为该文件已复制到我的机器上;我只是找不到它被复制到哪里...
问题
- 为什么目的地不是必填字段?
- 默认情况下/当未指定目标时,文件去哪里?
你问题第一部分的尖刻答案可能是 "because Microsoft said so"。由于我没有参与决策制定,因此无法给您明确的答案,但 cmdlet documentation 的示例 7 提到
The destination path cannot use wildcard characters. The destination path supports only a relative directory, a rooted path, or an implicit directory (the current directory).
所以我怀疑该参数是可选的,以允许传输文件"here"(到当前工作目录)而不必明确指定目的地,即为了使用简单。