Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

FTP using VB.NET

Posted on 2004-04-20
7
Medium Priority
?
2,151 Views
Last Modified: 2008-03-10
Hi

I am re-designing a solution that I had before in Access 2k into Visual Studio.NET
In the old program, I had ftp tasks to get, put and compare files in a ftp server. The old program uses DOS shell routines to perform those tasks and what basically does is to connect to the ftp server, change directories, downloads all text files from those different directories and close the connection when it's done. I would like to include those ftp tasks into the code instead of the DOS shells. I know is posible to do it but I don't have the expertise.

At the end, I would like to only call thye ftp-like commands as functions:

Sub Function mget () '......etc...

End function

and so on


open
user
pwd
mget
cd
put
lcd

Below is small sample of what I actually do with the DOS shell:

'-------Get my files-----------
cd <remote directory>
lcd <local directory>
mget *

This is very urgent and if someone could include ready-to-use code I would really appreciate it.

Thanks!
0
Comment
Question by:aarons34
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 15

Accepted Solution

by:
Timbo87 earned 1050 total points
ID: 10874979
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 450 total points
ID: 10875257
0
 
LVL 10

Expert Comment

by:tpwells
ID: 10882679
I used Chilkat's Free FTP control for my FTP problems. Works great and its very simple to use.

http://www.chilkatsoft.com/ChilkatFtp.asp

Hope this helps
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 1

Author Comment

by:aarons34
ID: 10991540
Soory for the delay of my response, but I needed some time to review all the answers to try to be as fair as possible.

Anyways, thank you all!
---------------------------------------------------------------------------------------------------------------------------------------

Timbo87:
With some tweaks on the code I have it up and running, thanks!

Dhaest:
The samples you suggested were very helpful!

tpwells:
Sorry, I'm not interested on buying but in developing. No money to pay licensing fees to someone else's app. =(

Thanks for the ad though
0
 
LVL 10

Expert Comment

by:tpwells
ID: 10995159
Maybe you didn't look at the linked page but Chilkat clearly states that the FTP control I linked to is completely free for commercial and non-comercial use completely royalty free(or never would have posted it, I hate paying for things you can do for free) :) . And its easy to use and very self explainitory.

0
 
LVL 1

Author Comment

by:aarons34
ID: 10996152
tpwells,

You are right, it's 'free' to use, but I considered 'paying' for 'free' marketing when I use a control that will say Chilkat instead of my own name or brand =)

Thanks though
0
 
LVL 10

Expert Comment

by:tpwells
ID: 10996193
ah ok i thought you where looking for a control to use not developing your own. :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question