Results 1 to 8 of 8

Thread: Sending files and downloading files from computers.

  1. #1

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Question Sending files and downloading files from computers.

    Hi I’m making a server in witch my friends log on to get programs from my computer and vice versa. Now I was looking for an easy way for downloading a program from the computer as well as uploading files. I was also wondering how I would find a way where I could scroll through files on my computer from his house. I’ve seen all this before and they say it's not hard so thanks in advance. And about the scrolling through files that would help me a lot!
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Sending files and downloading files from computers.

    If you have IIS (Internet Information Services), you can just enable FTP, and set up a public directory, and your done...

  3. #3

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Red face Re: Sending files and downloading files from computers.

    the reason i ask is because im also trying to creat a remote desktop program with multiple functions so what im doing with my friends is going to be test all thats left is captuing image witch im almost done and file transpher. But thanks for the suggestion.
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  4. #4

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Re: Sending files and downloading files from computers.

    No one knows any way of doing this?
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  5. #5
    Hyperactive Member kazar's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    323

    Re: Sending files and downloading files from computers.

    Okay then, here's what you do.

    I will assume basic winsock knowledge.

    You write a server program which will run on your computer, that contains a winsock control that listens to a particular port number, and gets data when a request is made.

    You then have a client on another computer, which has a winsock control, which sends requests to the server, and waits for a response.

    So, to get files from your computer, from the client you send a request to the server, e.g. the filename ("C:\file.txt"), and then the server, reads the request, and sends back the contents of the file.

    To get the file structure of the computer, you need to send a request to the server, like getfilestructure, and the server then compiles the file structure into a file, and sends it to you. You could even have it save the files, by sending a request to the server, that looks like this:

    FileDestination=C:\file.txt
    FileType=text
    FileContent=file (etc, etc)

    and do it a bit like a web server.

    If you want me to write some code for it, that could take a while longer, but thats the basic idea of it.
    KAZAR

    The Law Of Programming:

    As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
    __________________________________
    www.startingqbasic.co.uk

  6. #6

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Re: Sending files and downloading files from computers.

    ok exactly what i was looking for. If you could make that example i would be happy.
    dont worry about explaining code i could read perfectly so that should save you time. :P
    And thanks for reply.
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  7. #7
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Sending files and downloading files from computers.

    This will get you started I think:
    http://www.vbforums.com/showthread.php?t=377648

  8. #8

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Re: Sending files and downloading files from computers.

    Thanks man. And sweet your from toronto, Im from montreal :P
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

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