Results 1 to 4 of 4

Thread: Downloading/Uploading Files using the Winsock Control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    20

    Post

    I am making an FTP Client using VB with a Winsock Control. My question is, what is the code used to download and upload files from another computer connected to the same IP address and how do i see the files the other computer has in a file list box.(What is the code for that). Basically what i want is 2 dirlistboxes, and 2filelistboxes. 1 dir&file list that show the directories and files on the host computer the other that shows the files on the other computer.
    Any help on this subject would be greatly appreciated,
    thanks a bunch!

  2. #2
    Addicted Member Michael Woolsey's Avatar
    Join Date
    Nov 2000
    Location
    Calgary, Alberta, Canada.
    Posts
    243
    Here are a couple of links that may give you the information you want...

    http://www.mvps.org/vbnet/code/network/ftplist.htm - This is a direct link to the article I found.

    You may want to do a search from the main page to narrow down the information. http://www.mvps.org/vbnet/

    Hope this helps.
    Michael Woolsey
    Application/Web Developer

    Visual Basic 6.0 SP5
    Active Server Pages
    Oracle 9i
    - I'm going to live forever, or die trying!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    20
    The thing is i;m using the Winsock Control with the TCP protocal. Will this code work for the Winsock Control using a TCP protocol, it looks like it's for the INet control and the second thing is how do i get it to display the other computers files and folders after i've connected? I want one filelistbox and dirlistbox to be for my computer and the other file/dir listbox for the other computer.
    thanks

  4. #4
    Addicted Member Michael Woolsey's Avatar
    Join Date
    Nov 2000
    Location
    Calgary, Alberta, Canada.
    Posts
    243
    I don't know if you can use the Winsock control itself as a FTP control, but there is another control provided with Visual Basic that does allow it. The Microsoft Internet Transfer Control will allow the use of FTP.

    I'm sorry, I don't have any example of this control to give you, but the help file does have some example on its use unfortuntly it is in pieces so you will have to do a lot of reading.

    Hope this helps some.
    Michael Woolsey
    Application/Web Developer

    Visual Basic 6.0 SP5
    Active Server Pages
    Oracle 9i
    - I'm going to live forever, or die trying!

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