a
This commit is contained in:
@@ -9,15 +9,11 @@ using System.Linq;
|
||||
using HandleUtils;
|
||||
using System.Data.SqlClient;
|
||||
using Kingdee.BOS.Util;
|
||||
using E_ZKEcc.Service;
|
||||
using E_ZKEcc.Domian;
|
||||
using E_ZKEcc.Request;
|
||||
using Kingdee.BOS.Core.Util;
|
||||
using LexmarkSFTPSDK.Response;
|
||||
using System.Globalization;
|
||||
using System.Xml;
|
||||
using System.Text;
|
||||
using HUIWEI.Lexmark.sftp.SDK.Doamin;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
|
||||
namespace UnitTestProject2
|
||||
@@ -73,17 +69,24 @@ namespace UnitTestProject2
|
||||
public void TestMethod2()
|
||||
{
|
||||
// HUIWE_SFTP_TST@sftp.betagrid.gxs.com 22
|
||||
string ip = "sftp.betagrid.gxs.com";
|
||||
var port = 22;
|
||||
string user = "HUIWE_SFTP_TST";
|
||||
string pPath = "LEXMK_SFTP_TST";
|
||||
string pwd = "@m+n|9+v^.R}1[^";
|
||||
//string ip = "sftp.betagrid.gxs.com";
|
||||
//string user = "HUIWE_SFTP_TST";
|
||||
//string pPath = "LEXMK_SFTP_TST";
|
||||
//string pwd = "@m+n|9+v^.R}1[^";
|
||||
|
||||
string ip = "sftp.tradinggrid.gxs.com";
|
||||
string user = "HUIWE_SFTP_PRD";
|
||||
string pPath = "LEXMK_SFTP_PRD";
|
||||
string pwd = "i9{)Cso+k9M1AYm";
|
||||
|
||||
string localPath = @"D:\Work\GateDge\SFTP\POACK_20240507_4.xml";
|
||||
string remotePath = "/././POLLABLE";
|
||||
SFTPHelper SFTPHelper = new SFTPHelper(ip, user, pwd, port);
|
||||
//var result = SFTPHelper.GetFileList(remotePath, "*BIN");
|
||||
//SFTPHelper.Put(localPath, "/HUIWE_SFTP_TST/LEXMK_SFTP_TST/*BIN");
|
||||
SFTPHelper.Mget(remotePath, @"D:\Work\GateDge\SFTP\sftpFolder\", null);
|
||||
//SFTPHelper.Mget(remotePath, @"D:\Work\GateDge\SFTP\sftpFolder\", null);
|
||||
var nameList = SFTPHelper.GetFileList(remotePath);
|
||||
SFTPHelper.Disconnect();
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user