windows - 下载文件为空(Windows CLI)

标签 windows wget download network-traffic dev-null

出于测试目的,我想在 Windows CLI 中将文件下载到 null。

我用的是linux

wget http://download.thinkbroadband.com/1GB.zip -O /dev/null

这让我的连接忙了一会儿。

有什么方法可以在 Windows 7 的命令提示符或 Power Shell 中执行此操作?

其他从互联网生成流量但不将其保存到磁盘的解决方案也将被接受。

最佳答案

使用 Windows' (roughly) equivalent NUL device应该充分模仿 Linux 行为:

wget http://download.thinkbroadband.com/1GB.zip -O NUL

更新:适用于 Windows 的 wget 最新版本可用 here .

关于windows - 下载文件为空(Windows CLI),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18409518/

相关文章:

windows - 如何连接 Windows 批处理文件中的字符串?

linux - 在家用 PC 上工作,但在不同的服务器上进行 Web 开发

windows - 在没有 SSH 的情况下设置 Git

wget - 如何让 wget 以正确的文件名保存

linux - 网页加载时间问题。 wget 显示 "HTTP request sent, awaiting response... 301 Moved Permanently"

python - 为什么我可以手动构建 Python MSI 安装程序,但我的 Bamboo 远程代理服务却无法?

bash - 在远程主机上下载大文件。然后关闭ssh连接

javascript - 如何知道文件是否下载完成?

java - 在 Android Firebase 中获取上传文件的下载 URL 时遇到问题

node.js - HTTP数据传输非常慢[Electron]