Download file to null (Windows CLI)

8.4k views Asked by At

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.

2

There are 2 answers

2
golimar On BEST ANSWER

You can use that exact same command on any Windows with Cygwin. Make sure you select Wget in the package list when installing Cygwin

2
zb226 On

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.