Skip to content

Instantly share code, notes, and snippets.

@wcoder
Last active June 8, 2017 06:58
Show Gist options
  • Save wcoder/147f0553acdd697c9156 to your computer and use it in GitHub Desktop.
Save wcoder/147f0553acdd697c9156 to your computer and use it in GitHub Desktop.
Download file form internet with Windows console

** PowerShell

Invoke-WebRequest -Uri 'http://url' -OutFile 'D:\downloaded_file'
(New-Object System.Net.WebClient).DownloadFile('http://url', 'D:\downloaded_file')

** PHP

php -r "readfile('http://url');" > output_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment