Dim objFSOSet
objFSO = CreateObject ("Scripting.FileSystemObject")
objFSO.CopyFile "C:\test.txt", "D:\"
Also works for UNC paths:
Dim objFSOSet
objFSO = CreateObject ("Scripting.FileSystemObject")
objFSO.CopyFile "C:\test.txt", _ "\\AnotherPC\share$\Folder\test.txt"
No comments:
Post a Comment