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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • basheer
    New Member
    • Jan 2012
    • 1

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

    Private Sub Button1_Click(s ender As System.Object, e As System.EventArg s) Handles Button1.Click
    Dim FileToCopy As String
    Dim NewCopy As String

    FileToCopy = "C:\Users\????\ Desktop\fileNam e"
    NewCopy = "C:\Users\???\D esktop\new\file Name"

    If System.IO.File. Exists(FileToCo py) = True Then
    System.IO.File. Copy(FileToCopy , NewCopy)
    MsgBox("File Copied")
    End If
    End Sub
  • C CSR
    New Member
    • Jan 2012
    • 144

    #2
    See if you can use \\computername\ sharedfolder\ as your pathname.

    Comment

    • C CSR
      New Member
      • Jan 2012
      • 144

      #3
      Still just guessing; but have you mapped a drive letter to the destination?

      Comment

      Working...