示例#1
0
文件: Program.cs 项目: LyubovOL/Bases
        static void Main(string[] args)
        {
            var conFtp = new ConnectionToFtp(_login, _password, _ftpServer, _path, _fileName);
            var response = conFtp.GetResponse();
            if (response != null)
            {
                Console.WriteLine(response.StatusCode);
                Console.WriteLine(response.StatusDescription);
                Console.WriteLine(response.WelcomeMessage);
                Console.ReadLine();
                response.Dispose();
            }

            conFtp.Download(_saveToPath, _fileName);
        }
示例#2
0
        static void Main(string[] args)
        {
            var conFtp   = new ConnectionToFtp(_login, _password, _ftpServer, _path, _fileName);
            var response = conFtp.GetResponse();

            if (response != null)
            {
                Console.WriteLine(response.StatusCode);
                Console.WriteLine(response.StatusDescription);
                Console.WriteLine(response.WelcomeMessage);
                Console.ReadLine();
                response.Dispose();
            }

            conFtp.Download(_saveToPath, _fileName);
        }