FTP a Directory

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

does anyone have any sample code that shows how to FTP an entire
directory?
thanks
 
does anyone have any sample code that shows how to FTP an entire directory?
deal the files one by one...

Or use a third party solution, get it done immediately. Here's 5 lines
of VB.NET code that connects to an ftp server, uploads everything in
the target folder (including all subfolders, recursively, while
preserving the subdirectory structure), then disconnects.

Imports Xceed.Ftp

Dim ftp As New FtpClient()
ftp.Connect( "yourftpsite.com" )
ftp.Login()
ftp.SendMultipleFiles( "c:\folder to upload\*", True, True )
ftp.Disconnect()

This code uses Xceed FTP for .NET, part of the Xceed Data Manipulation
Suite, a $300 product.

http://www.xceedsoft.com/products/ftpnet
http://www.xceedsoft.com/products/dms


deal the files one by one...

--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

Check out our advanced .NET grid and Windows Forms UI controls

Email: (e-mail address removed) (remove the first 'x')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top