December 12, 2012

wget alternative for Windows

Ever needed to just fetch a file over HTTP from a Windows command-line? Well.. maybe not as simple as typing the four characters of "wget" but here is a Powershell command that will do the trick:

(new-object System.Net.WebClient).DownloadFile('','C:\Temp\MyFile.txt')

Just fill in the source and destination.

Done :)