关于FTP的APPE命令
pFtpConn = m_pSession->GetFtpConnection(strServerName,strUserName,strPassword,nPort,FALSE);
strRestPointCommand.Format( _T("APPE %s"), strObject);
if ( !FtpCommand((*pFtpConn), FALSE, FTP_TRANSFER_TYPE_BINARY, strRestPointCommand, 0, 0) )
{
CString e;
e.Format(_T("%s FtpCommand failed,error: %d\n"), strRestPointCommand,GetLastError());
write(e);
}
else
{
write("FtpCommand执行成功");
}
经过测试,pFtpConn 可以正确打开,但是FtpCommand命令却不能执行,记录的错误为: FtpCommand failed,error:12003
以前有人遇见过么?
怎么用代码向FTP服务器发出APPE命令呢 ?我这样写对么 ?