2013-12-08 3 views
0

C#의 Filedownloader에 대한 어셈블리 참조는 무엇입니까?filedownloader에 대한 어셈블리 참조?

내 로컬 드라이브 'C'로 FTP에서 파일을 다운로드하는 찾고 있어요

,

코드 :

나는 filedownloader에 대한 추가해야한다 참조
using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Configuration; 
using System.Data; 
using System.Data.SqlClient; 
using System.IO; 
using System.Linq; 
using System.Reflection; 
using System.Text; 
using System.Text.RegularExpressions; 
using System.Threading.Tasks; 

FileDownloader f = new FileDownloader(); 

?

+0

다음 링크를 참조하십시오. http://stackoverflow.com/questions/17694513/download-from-ftp-with-c-sharp – PCG

답변

1

FTP에서 파일을 다운로드하려고하는데 FileDownloader 클래스를 사용할 필요가 없습니다. 이 링크는 "http://msdn.microsoft.com/en-us/library/ms229711(v=vs.110).aspx"과 같이 사용할 수 있습니다.

또한, 그렇게이 링크에서 찾고 시도하는 오픈 소스를 사용할 수 있습니다 : "http://www.codeproject.com/Tips/443588/Simple-Csharp-FTP-Class는"

그것이 (위의 링크에서) 사용하는 것이 얼마나 간단한 예입니다 :

ftp ftpClient = new ftp(@"ftp://10.10.10.10/", "user", "password"); 
ftpClient.download("etc/test.txt", @"C:\Users\metastruct\Desktop\test.txt");