使用了File.Copy(sourceFileName, destFileName)但是报错:URI formats are not supported.
其中sourceFileName是这样的文件路径:"http://10.0.0.1/webFile/test.xls" ,
destFileName是本地一路径:"c:\\1.xls"请问,应该用什么方法将文件拷贝到本地?
其中sourceFileName是这样的文件路径:"http://10.0.0.1/webFile/test.xls" ,
destFileName是本地一路径:"c:\\1.xls"请问,应该用什么方法将文件拷贝到本地?
File一般用来读本地的
private WebClient MyWebClient = new WebClient();
this.MyWebClient.DownloadFileAsync(new Uri(http://10.0.0.1/webFile/test.xls), c:\\1.xls);