How to download files on windows server

Using powershell:

powershell (New-Object Net.WebClient).DownloadFile('http://www.google.com', 'result.txt')

You must use single quotes and not double quotes for this to work

原文地址:https://www.cnblogs.com/flysun0311/p/2716353.html