Results 1 to 5 of 5

Thread: Remotely accessing a file

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Malaysia
    Posts
    7

    Question

    Hi all,

    I would like to learn how to read/write to a file residing on another computer (e.g the server) but I've been looking around the net and could not find anything helpful.
    Do any of you know of a specific link/tutorial to do this?
    Any help would be appreciated

    Thank you!

  2. #2
    Guest
    You can simply:

    Code:
    Open "\\hostname\drive\file.txt" For Output As #1
        'What you want to do
    Close #1

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Malaysia
    Posts
    7
    Tried that... couldn't get it to work, I think its because you are not actually connected to the server or the particular computer yet.
    I'm thinking more on the lines of using API or Winsock to do this but I obviously have no idea how to do it.

  4. #4
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    I'm working on a similar project at the moment. I use the Inet control, of which there is a good tutorial on this site (http://www.vbsquare.com/articles/inet1/) - It is focussed toward web based stuff, but assuming you have the IP address or server name, it will work for that.

    Another method, less flexible, is also mentioned on this site is the API URLDownloadtoFile (http://www.vb-world.net/tips/tip501.html) - it's great if you need to download a file, but it STILL can't find the upload method!


  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Malaysia
    Posts
    7

    Talking

    Thank you Gaffer, I will try it out.

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