Download URL content using PowerShell

后端 未结 7 2022
挽巷
挽巷 2020-12-25 15:33

I am working in a script, where I am able to browse the web content or the \'url\' but I am not able to copy the web content in it & download as a file. This is what I h

7条回答
  •  臣服心动
    2020-12-25 15:49

    If you just want to download web content, use

    (New-Object System.Net.WebClient).DownloadFile( 'download url content', 'save.html' )
    

提交回复
热议问题