Question How do I send a file over the network

12padams

Well-known member
Joined
Feb 19, 2010
Messages
48
Programming Experience
Beginner
I ahve tried using the code:

Code:
My.Computer.Network.UploadFile("C:\Users\Phillip\Desktop\test.txt", "http://10.0.0.2/c:/text.txt", "my username, "mypassword")
but it does not work...

whats the proper format for entering a location to a computer over the network?

Also... whats a way to send a file to a computer over the internet such as my friends computer...

The reason I am doing this is because I plan to make some programs that run based on text files and a basic example of this is a chat program... but I do plan for other things as well...

EDIT:

Used this code:

Code:
My.Computer.Network.UploadFile("C:\Users\Phillip\Desktop\test.txt", "\\PHILIPADAMS-PC\USERS\Philip Adams\text.txt", "myusername", "mypass")
and it worked... now how can I send over the internet... Also is there another way i can send over the network like using the IP instead of computer name?

Also how do I send it to other computers?
 
Last edited:

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,327
Location
Norway
Programming Experience
10+
Upload via internet is usually done through a Ftp server, like UploadFile(path, "ftp://serverdomain-or-ip", credentials)
 

12padams

Well-known member
Joined
Feb 19, 2010
Messages
48
Programming Experience
Beginner
using ftp:// or file:// or http:// just results in it saying "The given paths format is not supported... What do I do?

(without Getting a domain name)
 

12padams

Well-known member
Joined
Feb 19, 2010
Messages
48
Programming Experience
Beginner
Thanks I'll turn my local computer into an FTP server :)
 
Last edited:

Learner VBNET

Member
Joined
Aug 18, 2010
Messages
14
Programming Experience
Beginner
:confused: Send the file to your friend via SKYPE if your friend and yourself can be logged into SKYPE at the same time.
 
Top Bottom