关于CFtpFileFind的使用,难道这也大小敏感???

xlqin 2001-07-21 02:04:04
CInternetSession ftpSession;
CFtpConnection* pFtpConn = ftpSession.GetFtpConnection (ftpserver,NULL,NULL, ftpport);
if(pFtpConn)
{
CFtpFileFind finder(pFtpConn);
BOOL bWorking = finder.FindFile(remotefile);
//比如FTP上有文件 def.htm
//如果 remotefile = "def.htm" 返回值bWorking就是TRUE
//但如果 remotefile = "Def.htm" 返回值bWorking就是FALSE
}

测试ftp服务器的系统为NT4.0
...全文
218 22 打赏 收藏 转发到动态 举报
写回复
用AI写文章
22 条回复
切换为时间正序
请发表友善的回复…
发表回复
xlqin 2001-11-23
  • 打赏
  • 举报
回复
Kevin_qing(Kevin),你说地很有可能,我想只能是这样了
Kevin_qing 2001-08-15
  • 打赏
  • 举报
回复
我是说写MFC代码的人写错了。
用API试试,比mfc方便
lbqsv 2001-08-15
  • 打赏
  • 举报
回复
NT的ftp服务器也得用unix的标准,ftp本来就是Unix的东东,这可不是Microsoft说了算的
god剑走偏锋 2001-08-15
  • 打赏
  • 举报
回复
没错!大小敏感
xlqin 2001-08-15
  • 打赏
  • 举报
回复
Kevin_qing(Kevin) 不是我写错了,我调试过,结果如题
meteorshower 2001-08-13
  • 打赏
  • 举报
回复
用Api写算了,多方便

FtpCommand Allows an application to send commands directly to an FTP server.
FtpCreateDirectory Creates a new directory on the FTP server.
FtpDeleteFile Deletes a file stored on the FTP server.
FtpFindFirstFile Searches the specified directory of the given FTP session. File and directory entries are returned to the application in the WIN32_FIND_DATA structure.
FtpGetCurrentDirectory Retrieves the current directory for the specified FTP session.
FtpGetFile Retrieves a file from the FTP server and stores it under the specified file name, creating a new local file in the process.
FtpGetFileSize Retrieves the file size of the requested FTP resource.
FtpOpenFile Initiates access to a remote file on an FTP server for reading or writing.
FtpPutFile Stores a file on the FTP server.
FtpRemoveDirectory Removes the specified directory on the FTP server.
FtpRenameFile Renames a file stored on the FTP server.
FtpSetCurrentDirectory Changes to a different working directory on the FTP server.
Kevin_qing 2001-08-13
  • 打赏
  • 举报
回复
是不是写MFC的人写错老,嘿嘿
lf_77 2001-08-13
  • 打赏
  • 举报
回复
up
xlqin 2001-08-10
  • 打赏
  • 举报
回复
up
Congy 2001-08-07
  • 打赏
  • 举报
回复
Mr_Bomber(炸弹先生) 说的对,不止大小写敏感,连中文名都识别不出来
xlqin 2001-08-07
  • 打赏
  • 举报
回复
up
xlqin 2001-08-01
  • 打赏
  • 举报
回复
的确是用IIS
这么说,我只能用通配符来搜索所有文件来确定是否有此文件了?
Chice_wxg 2001-08-01
  • 打赏
  • 举报
回复
楼上说的对

Linux和Unix系统大小写敏感
Mr_Bomber 2001-08-01
  • 打赏
  • 举报
回复
如果用的是IIS的话,我记得在FTP服务器属性叶里面有一个控制FTP显示风格的选项,可以选择用MS-DOS风格还是UNIX风格的,可能是服务器的FTP显示风格用的是UNIX风格造成的吧?
MiniGreen 2001-08-01
  • 打赏
  • 举报
回复
up
MiniGreen 2001-08-01
  • 打赏
  • 举报
回复
up
MiniGreen 2001-08-01
  • 打赏
  • 举报
回复
up
xlqin 2001-07-26
  • 打赏
  • 举报
回复
我还以为这个问题很简单呢,没想到就没个答案!
xlqin 2001-07-25
  • 打赏
  • 举报
回复
有没有人知道?
xlqin 2001-07-21
  • 打赏
  • 举报
回复
同志们,给我一个象样的理由吧

我测试的FTP服务器的操作系统是 NT4.0

哪儿有这方面的标准,测试的结果我是不太相信的,我还以为是不是我什么参数用错了呢
加载更多回复(2)

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧