Home > Software engineering >  Access to FTP the file list of the fixed folder, self-built FTP can, unit no
Access to FTP the file list of the fixed folder, self-built FTP can, unit no

Time:09-27

 'access to FTP directory 
Dim ftpupdate As String
Ftpupdate=""

Try
Dim ftprequest As System.Net.FtpWebRequest=System.Net.FtpWebRequest.Create (New Uri (ftppath & amp; Ftpdirectory))
Dim ftpresponse As System.Net.FtpWebResponse
With ftprequest
. UseBinary=True
The KeepAlive=False
'. The Credentials=New System.Net.NetworkCredential (" ", "")
The Method=System.Net.WebRequestMethods.Ftp.ListDirectory
Ftpresponse=. The method GetResponse
Dim ftpinfo As the New System. IO. StreamReader (ftpresponse. GetResponseStream)
Ftpupdate=ftpinfo. ReadToEnd. ToString
End With
Ftprequest=Nothing
Ftpresponse. Close ()
Ftpresponse=Nothing
Catch the ex As Exception
End the Try


At home can be on their own built-in FTP, in the unit ftpupdate is empty, strives for the great god answers

CodePudding user response:

Control on the server completely,
As long as the banned list directory permissions on the FTP server, you don't have any way,

CodePudding user response:


I also feel because your unit on the FTP server Settings problems,

CodePudding user response:

You use other software to log on and see
If you can
May and mode about
I haven't got a little forgotten
There seems to be a pasv mode and port
There is a difference between two model code should be
  • Related