I just need a simple FTP in .NET to send a file. Where to start? Basically, I already have an application built and when I change settings in this application I need to "send" the updated INI file via FTP.
Printable View
I just need a simple FTP in .NET to send a file. Where to start? Basically, I already have an application built and when I change settings in this application I need to "send" the updated INI file via FTP.
start here... most of the work is done for you already...
http://support.microsoft.com/default...b;en-us;832679
You could probably find some better and examples to follow for doing this if you search the forums for FTP.
I built a nifty little ftp client not too long ago with one of the examples I found on the forums. I'll try to find it and post back.
Squirrelly1
I am wondering if I can just use a simple .NET form to work through the command line FTP. Is that possible? You know...you can go to the command prompt and type "ftp" and then you are at the ftp prompt...then you type:
ftp: open ftp.yoursite.com
What do think about that approach?
i think its easier to use the MSDN code... its a full class.. you just need to copy and paste it to a class module and then you can use it
I'm not sure which one I used when I created my ftp dll. I'll have to take a look at it later.
BTW... Can you not download the code in one file and save the headache of copying everything manually?
squirrelly1
The link for Microsoft worked great. Work is already done for the most part like you said K.
I can't get the code to work.
The line:
in the function CreateDataSocket.VB Code:
For i = 0 To ((len - 1) And (partCount <= 6))
This doesn't work. I have Option Strict turned On and it says cannot convert Boolean to Integer and it blue squiggles PartCount<=6
But if you look at the code it's wrong.
Have you ever seen:
??? nor have I :(VB Code:
For n=1 to True
Woka