如何获取LIST命令的响应消息(从CFTPConnection) [英] How to get a response message of LIST command (from CFTPConnection)
问题描述
如何获得使用CFTPConnection::Command()
执行的LIST
命令的响应.我可以得到目录清单.但是没有可用空间大小信息.
How can I get a response of LIST
command executed with CFTPConnection::Command()
. I can get the directory listing. But not free space size information.
Windows IIS FTP服务器提供可用空间作为LIST命令的响应:
如何检查FTP服务器中的可用空间?
Windows IIS FTP server gives free space as response of LIST command:
How to check free space in a FTP Server?
推荐答案
It does not look like that the MFC CFTPConnection
class has an API to access the response message of the command executed.
尽管该类只是Win32 Wininet函数的包装,但是您可以使用 CFTPConnection::Command
.
Though as the class is just a wrapper around Win32 Wininet functions, you can use InternetGetLastResponseInfo
function to retrieve the response right after calling CFTPConnection::Command
.
在调用此函数的线程上检索最后的错误描述或服务器响应.
Retrieves the last error description or server response on the thread calling this function.
这篇关于如何获取LIST命令的响应消息(从CFTPConnection)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!