18,357
社区成员
发帖
与我相关
我的任务
分享
//...
CFtpConnection* pConnect = NULL;
CInternetSession sess(sectionName);
try
{
pConnect = sess.GetFtpConnection(_cfg.hostName, _cfg.account, _cfg.pwd, _cfg.hostPort, TRUE);
strcpy_s(strCmd, sizeof(strCmd), "cd /");
pConnect->Command(strCmd, CFtpConnection::CmdRespRead);//-------------有错误
// 200 Type set to I.
// 227 Entering Passive Mode (192,168,0,61,71,174).
// 500 'CD /': command not understood
}
catch (CInternetException* pEx)
{
//...
}
//...