Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.6k views
in .NET FTP by
I understand that IBM AS/400 does not support the MDTM FTP (.ModTime) command.

Would this affect my ability to use .DirDetails as well?

Here's my code:

Dim myFiles() As String
Dim myFTP As New EnterpriseDT.Net.Ftp.FTPClient
Dim myAttributes() As EnterpriseDT.Net.Ftp.FTPFile

With myFTP
.RemoteHost = "my.server.com"
.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.PASV
.Connect()
.Login(txtUserName.Text, txtPassword.Text)
.CdUp()
.ChDir("My.Directory")
myAttributes = .DirDetails("*.*")
.Quit()
End With

myFTP = Nothing

MsgBox(UBound(myAttributes))

My.Directory is not empty, however the MsgBox always returns -1.

I'd appreciate suggestions on how to get this to work.

Please log in or register to answer this question.

Categories

...