Пример #1
0
 /// <summary>
 /// 测试连接
 /// </summary>
 /// <returns></returns>
 public string DoTestFTPHost()
 {
     try
     {
         FtpSupport.FtpConnection conn = new FtpSupport.FtpConnection();
         conn.Connect(SystemConfig.FTPServerIP, SystemConfig.FTPUserNo, SystemConfig.FTPUserPassword);
         return("连接成功.");
     }
     catch (Exception ex)
     {
         return("err@连接失败:" + ex.Message);
     }
 }