close
WebClient wc = new WebClient(); //宣告web client物件
wc.Credentials = new NetworkCredential(account, password); //登陸ftp
wc.DownloadFile("ftp://127.0.0.1//abcd.txt", "C:\\Users\\8044\\Desktop\\abcd.txt"); //下載
wc.UploadFile("ftp://127.0.0.1//ghig.xls", "C:\\Users\\8044\\Desktop\\9906.xls"); //上傳
全站熱搜
留言列表