Download URL content using PowerShell

后端 未结 7 1971
挽巷
挽巷 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

    $web = New-Object Net.WebClient
    
    $web | Get-Member
    
    $content=$web.DownloadString("http://www.bing.com")
    

提交回复
热议问题