PDA

View Full Version : Copying Files Across the Network


Abd
04-17-2003, 11:38 AM
Hi All,

has anyone an idea of how to copy a file from one computer to another across a network .

Abd

Roy Sinclair
04-17-2003, 06:12 PM
It's rather easy:


set fso=createobject("Scripting.FileSystemObject")
fso.CopyFile "source" "destination"


Just remember that you can use full UNC names in both the course and destination. (UNC = \\servername\sharename\path\filename -- always use UNC in preference to using drive letters)

whammy
04-17-2003, 11:49 PM
Yup. You should learn FSO anyway, it's really handy...

http://www.w3schools.com/asp/asp_ref_filesystem.asp

:)