Download file to null (Windows CLI)

RokX picture RokX · Aug 23, 2013 · Viewed 7.1k times · Source

I would like to download a file to null in windows cli just for testing purposes.

In linux i used

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

This kept my connection busy for a while.

Is there any way to do this in command prompt or power shell in windows 7?

Also other solutions to generate traffic from internet,ut withous saving it to disk, will be accepted.

Answer

zb226 picture zb226 · Aug 28, 2013

Using Windows' (roughly) equivalent NUL device should mimic the Linux behaviour sufficiently:

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

Update: Recent builds of wget for Windows are available here.