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

Reproduced in: https: //www.cnblogs.com/flysun0311/archive/2012/10/09/2716353.html

Guess you like

Origin blog.csdn.net/weixin_34414650/article/details/93444235