1 用TIdFTP链接服务器出错 如上图,如何处理啊?
2 TIdFTP,如何将一个文件上传到服务器指定目录里》

解决方案 »

  1.   

    Socket的设置正确吗。比如端口等等。
      

  2.   

                    try{
                    BeforFtp->Disconnect() ;
                    BeforFtp->Host = FtpServiceHost;
                    BeforFtp->User = FtpServiceUserName;
                    BeforFtp->Password = FtpServicePassWord;
                    BeforFtp->Port = FtpServicePort;
                    BeforFtp->Connect() ;
                    BeforFtp->Put(ADOQuery1->FieldByName("FilePath")->AsString+ADOQuery1->FieldByName("FileName")->AsString,UpLoadDir + TransAfterAddStr + ADOQuery1->FieldByName("FileName")->AsString,true);
                    BeforFtp->Quit();
                      }
                  catch(...)
                    {
                    IsTransOk = false;
                    }这个是我一个程序里面的一段,你应该能看的懂的,UpLoadDir就是指定的目录
      

  3.   

    这是啥错误?? ---------------------------
    Debugger Exception Notification
    ---------------------------
    Project FtpTool.exe raised exception class EIdProtocolReplyError with message '/d:: Permission denied.
    '. Process stopped. Use Step or Run to continue.
    ---------------------------
    OK   Help   
    ---------------------------
      

  4.   

    可是我用flashfxp就可以连接啊????
      

  5.   

    可是我用flashfxp就可以连接啊????也能够上传文件???