Note that the download file path must exist.
downloadFile 'http://www.foo.com/foo.iso' 'c:\temp\foo.iso'
function downloadFile($uri, $filename)
{
$webClient = new-object net.webclient
$webClient.downloadFileAsync($uri, $filename)
}downloadFile 'http://www.foo.com/foo.iso' 'c:\temp\foo.iso'
function downloadFile($uri, $filename)
{
$webClient = new-object net.webclient
$webClient.downloadFileAsync($uri, $filename)
}
No comments:
Post a Comment