SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right I hope this is in the right forum!

    using the basic Ftp program on my computer - it's called ftp.exe and in the windows directory - it's the one which looks like DOS - anyway I'm sure you know what I mean.

    how can I get it to connect to a particular ftp server - insert the username, password then upload a particular file, disconnect and close the ftp program. all with just clicking typing a command into the run box on the start menu.

    I can get it to connect on it's own.

    ftp.exe ftp.servername.com

    any suggestions

    if this cannot be done - can anyone suggest a suitable way to automatically upload a particular file to a particular ftp server from within a VB program. I'm not very knowledgable about Winsock and API's etc....

    cheers

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You would use the WinInet control that is part of Windows 95 with Internet Explorer installed or anything higher.

    There is an example called simpleftp at the Microsoft Developers Network. You can read the knowledge based article on it at:
    http://support.microsoft.com/support.../Q195/6/53.ASP

    If you use the WinInet control you can let Windows handle winsock communications and not worry about them. Since your using Visual Basic, portability is not an issue and this will give you a quick solution to the problem.
    Wayne Luke
    ------------


  3. #3
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here are a few instructions for the DOS-based ftp prog:
    open servername.com - connect to server
    user - ready for username (you type then press enter, then type the username)
    pass - passwod - as user
    get source destination - retrieve a file
    put source destination - upload a file
    delete file - delete a file
    cd directory - change directory

    As far as I know there is no way to make it connect directly from the run box...

    Hope that helps!

  4. #4
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have already managed to get it to connect straight from the run box by putting in the following command:


    "ftp.exe ftp.servername.com"

    - hence it would connect to ftp.servername.com
    I just need to put in the username and password


  5. #5
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah sorry about that I meant to type "As far as I know there is no way to get it to login from the Run box"...


Bookmarks

Posting Permissions

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