Is there a windows command to copy or upload files from http-url to the file system? I tried with copy, xcopy and robocopy, and they don't seem to support http addresses.
You can use powershell script to execute this.Get-Web http://www.msn.com/ -toFile www.msn.com.html
function Get-Web($url, [switch]$self, $credential, $toFile, [switch]$bytes) { #.Synopsis # Downloads a file from the web #.Description # Uses System.Net.Webclient (not the browser) to download data # from the web. #.Parameter self # Uses the default credentials when downloading that page (for downloading intranet pages) #.Parameter credential # The credentials to use to download the web data #.Parameter url # The page to download (e.g. www.msn.com) #.Parameter toFile # The file to save the web data to #.Parameter bytes # Download the data as bytes #.Example # # Downloads www.live.com and outputs it as a string # Get-Web http://www.live.com/ #.Example # # Downloads www.live.com and saves it to a file # Get-Web http://wwww.msn.com/ -toFile www.msn.com.html $webclient = New-Object Net.Webclient if ($credential) { $webClient.Credential = $credential } if ($self) { $webClient.UseDefaultCredentials = $true } if ($toFile) { if (-not "$toFile".Contains(":")) { $toFile = Join-Path $pwd $toFile } $webClient.DownloadFile($url, $toFile) } else { if ($bytes) { $webClient.DownloadData($url) } else { $webClient.DownloadString($url) } } }
source http://blogs.msdn.com/mediaandmicrocode/archive/2008/12/01/microcode-powershell-scripting-tricks-scripting-the-web-part-1-get-web.aspx
Windows, , GNU wget Windows .
cURL .
curl -o homepage.html http://www.apptranslator.com/
homepage.html. .
BITSAdmin Tool (bitadmin - )
:
bitsadmin /transfer "Download_Job" /download /priority high "http://www.sourceWebSite.com/file.zip" "C:\destination\file.zip"
, Download_Job - ,
- . , - JavaScript ( WinHttpRequest) :
wscript your_script.js
msys wget.
Win32 api (1 C...)
Source: https://habr.com/ru/post/1704149/More articles:How to read Windows event log without EventMessageFile? - event-logКак читать/записывать общую переменную с помощью pthreads? - cYou can display the actual source code from codebehind on an aspx page (for sample code pages) - .netCopy image data type from one table to another - sql-serverHow to send a binary block to a client browser? - browsermultiple httpmodule instances - c #Exploring standard library sources - language-agnosticSmallest touchscreen button size - designHow do you design a schema to efficiently query nested elements in a key database? - erlangСуммирование значений в однострочном файле с разделителями-запятыми - language-agnosticAll Articles