Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by
Sorry on my bad english.
I REALY need GUI sample for VB.
Everything is fine when i use FTPConnection class. I got all items from server (Folders and files).
FTPConnection.GetFiles() method is god but this method cannot recognize if item is folders or files.
My problem is, how to get just folders for example, then i can put folder icon in listview on that item.
Then, get files and put icon for files for each item.

I know that FTPConnection class cannot do this.
But FTPClient class can.

PLEASE, i need then sample for FTPClinet class in GUI mode.
FTPClinet class is to complicated for me, because i'm realy beginner in VB.NET

Some link?
Or just sent sample on setmec@hotpop.com
Thanks.

2 Answers

0 votes
by (162k points)
You want GetFileInfos().

That will tell you if they are files or directories

Sorry on my bad english.
I REALY need GUI sample for VB.
Everything is fine when i use FTPConnection class. I got all items from server (Folders and files).
FTPConnection.GetFiles() method is god but this method cannot recognize if item is folders or files.
My problem is, how to get just folders for example, then i can put folder icon in listview on that item.
Then, get files and put icon for files for each item.
0 votes
by
Please, i'm really beginer, so help me. This is my connection. And down is my problems. Please get me solution.



'My Connection
-----------------------------------------------
FtpConnection1.ConnectMode = FTPConnectMode.PASV
FtpConnection1.ServerAddress = ServerTextBox.Text
FtpConnection1.ServerPort = Integer.Parse(PortTextBox.Text)
FtpConnection1.UserName = UserTextBox.Text
FtpConnection1.Password = PasswordTextBox.Text
FtpConnection1.Connect()
----------------------------------------------------

'My Problems
'Then What?
FtpConnection1.GetFileInfos() '??????

for each ???? in ????
If Item = Folder Then '????
Else
Item = File
End If
Next

Categories

...