文件的FTP上传与FTP下载
示例#1
0
 /// <summary>
 /// FTP对象
 /// </summary>
 /// <returns></returns>
 public static FTPDownUp FtpInfo()
 {
     var serverAddr = ConfigurationManager.AppSettings["serverAddr"].ToString();
     var serverPort = Convert.ToInt32(ConfigurationManager.AppSettings["serverPort"]);
     var userName = ConfigurationManager.AppSettings["userName"].ToString();
     var passWord = ConfigurationManager.AppSettings["passWord"].ToString();
     FTPDownUp ftp = new FTPDownUp(serverAddr, serverPort, userName, passWord);
     return ftp;
 }
示例#2
0
文件: Common.cs 项目: leedaga/HYPDM
        /// <summary>
        /// FTP对象
        /// </summary>
        /// <returns></returns>
        public static FTPDownUp FtpInfo()
        {
            var       serverAddr = ConfigurationManager.AppSettings["serverAddr"].ToString();
            var       serverPort = Convert.ToInt32(ConfigurationManager.AppSettings["serverPort"]);
            var       userName   = ConfigurationManager.AppSettings["userName"].ToString();
            var       passWord   = ConfigurationManager.AppSettings["passWord"].ToString();
            FTPDownUp ftp        = new FTPDownUp(serverAddr, serverPort, userName, passWord);

            return(ftp);
        }