|
-
Jan 30th, 2001, 03:41 AM
#1
Thread Starter
New Member
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!
-
Jan 30th, 2001, 04:02 AM
#2
You can simply:
Code:
Open "\\hostname\drive\file.txt" For Output As #1
'What you want to do
Close #1
-
Jan 30th, 2001, 04:26 AM
#3
Thread Starter
New Member
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.
-
Jan 30th, 2001, 04:32 AM
#4
Fanatic Member
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!
-
Jan 30th, 2001, 04:36 AM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|