Menu
Hey guys, I got this code to upload an FTP file which works great, but what do I do when I wnat to upload the contents of an entire folder? I mean, I could make a for-each but that would mean disconnecting and reconnecting to the FTP server alot of times which is just uneccesary. Any ideas?
Edited by crankyslap: n/a
- 2 Contributors
- forum4 Replies
- 756 Views
- 2 Days Discussion Span
- commentLatest Postby crankyslap
List all files in a folder with VB.NET In.NET you can use the DirectoryInfo class of the System.IO namespace to get a list of files in a particular folder. DirectoryInfo has a GetFiles method that returns a file list, as FileInfo structures, from the specified directory.
Not really sure since I have not uploaded anything to FTP with '>vb.net, but could you just not use:
Do let me know if that works.:)