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");     //上傳

arrow
arrow
    全站熱搜

    baba 發表在 痞客邦 留言(0) 人氣()