364,112 Members | 2289 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

how to send file between PC's on local Network by using PC name ??

basheer
P: 1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim FileToCopy As String
Dim NewCopy As String

FileToCopy = "C:\Users\????\Desktop\fileName"
NewCopy = "C:\Users\???\Desktop\new\fileName"

If System.IO.File.Exists(FileToCopy) = True Then
System.IO.File.Copy(FileToCopy, NewCopy)
MsgBox("File Copied")
End If
End Sub
Jan 24 '12 #1
Share this Question
Share on Google+
2 Replies


C CSR
100+
P: 144
See if you can use \\computername\sharedfolder\ as your pathname.
Jan 25 '12 #2

C CSR
100+
P: 144
Still just guessing; but have you mapped a drive letter to the destination?
Jan 25 '12 #3

Post your reply

Help answer this question



Didn't find the answer to your Visual Basic .NET question?

You can also browse similar questions: Visual Basic .NET