简体   繁体   English

vb.net Ftp客户端-获取ftp欢迎消息(以及来自FTP服务器的其他消息)

[英]vb.net Ftp Client - get ftp welcome message (and other messages from FTP Server)

This is my first message here. 这是我的第一个消息。 I noob on programming and I need some help. 我对编程没有兴趣,我需要一些帮助。

I have created a custom ftp application. 我创建了一个自定义的ftp应用程序。 I'm able to login and download files from the server using ftpwebrequest method however I can't find the way to read and display ftp's server welcome and other messages. 我可以使用ftpwebrequest方法从服务器登录和下载文件,但是找不到读取和显示ftp的服务器欢迎信息和其他消息的方法。

I need a way to get login failure messages in order to display a warning message on the program interface. 我需要一种获取登录失败消息的方法,以便在程序界面上显示警告消息。

I think you want the FtpWebResponse.BannerMessage property. 我认为您需要FtpWebResponse.BannerMessage属性。 See http://msdn.microsoft.com/en-us/library/system.net.ftpwebresponse.bannermessage%28v=vs.90%29.aspx . 请参阅http://msdn.microsoft.com/zh-cn/library/system.net.ftpwebresponse.bannermessage%28v=vs.90%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM