PowerShell -WebClient DownloadFile Wildcards?
问题 I want to copy multiple files from a SharePoint libary to a local directory. It is possible to use Wildcards? The following code is not working. But is there a way to use the WebClient and Wildcards? (I must use the WebClient. It is not possible to use the SharePoint WebServices :-( ) $url = "http://mySharePoint/websites/Site/TestDocBib/*.jpg" $path = "D:\temp\" $WebClient = New-Object System.Net.WebClient $WebClient.UseDefaultCredentials = $true $WebClient.DownloadFile($url, $path) 回答1: you