$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)
}
}
web client
猜你喜欢
转载自my.oschina.net/pearma/blog/1805790
今日推荐
周排行