如何获取LIST命令的响应消息(从CFTPConnection) [英] How to get a response message of LIST command (from CFTPConnection)

查看:92
本文介绍了如何获取LIST命令的响应消息(从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函数的包装,但是您可以使用

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆