UNC and File Copy

  • Thread starter Thread starter Henry
  • Start date Start date
H

Henry

I need to copy a file to another pc on our network.

Here is the code I'm using.

Dim fs As FileSystemObject
Set fs = New FileSystemObject


With fs
.CopyFile "C:\test.txt", "\\pipe139\c:\"
End With

fs = Nothing

Note I'm using a UNC path. The error I get is Path not found. I am the
administrator on the network. I did not map any drives to this desktop. Is
it not possible to do this?

Thanks
Henry
 
I need to copy a file to another pc on our network.

Here is the code I'm using.

Dim fs As FileSystemObject

why not use FileCopy???
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
 
Back
Top