web client

为什么80%的码农都做不了架构师?>>>   hot3.png

$wc = New-Object System.Net.WebClient
get-content d:\users\mac\desktop\hd.m3u8 |foreach-object {
    if($_.length -gt 20) 
    {
         $_ -match '(hd\d+\.ts)'|Out-Null
         $url=$_
         $output=[string]::concat('d:\users\mac\Videos\',$matches[1])
        $wc.DownloadFile($url, $output)
         
     }
}

转载于:https://my.oschina.net/pearma/blog/1805790

你可能感兴趣的:(web client)