用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.
这么说,我只能用通配符来搜索所有文件来确定是否有此文件了?
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.
用API试试,比mfc方便