Results 1 to 8 of 8

Thread: [RESOLVED] - Simple FTP

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Resolved [RESOLVED] - Simple FTP

    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.
    Last edited by birthjay; Feb 16th, 2005 at 04:07 PM. Reason: Resolved

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Simple FTP

    start here... most of the work is done for you already...

    http://support.microsoft.com/default...b;en-us;832679

  3. #3
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Re: Simple FTP

    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
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Re: Simple FTP

    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?

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Simple FTP

    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

  6. #6
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Re: Simple FTP

    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
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Re: [RESOLVED] - Simple FTP

    The link for Microsoft worked great. Work is already done for the most part like you said K.

  8. #8
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: [RESOLVED] - Simple FTP

    I can't get the code to work.
    The line:
    VB Code:
    1. For i = 0 To ((len - 1) And (partCount <= 6))
    in the function CreateDataSocket.
    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:
    VB Code:
    1. For n=1 to True
    ??? nor have I

    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width