PDA

Click to See Complete Forum and Search --> : Copy Not Move


HeSaidJoe
Nov 27th, 1999, 04:17 AM
Having 2 files in a folder called FolderA
I want to copy the files to FolderB and FolderC and still have the files in FolderA

Thanks,
Wayne

Aaron Young
Nov 27th, 1999, 11:01 AM
Try using the FileSystemObject with the CopyFile Method..

Private Sub Command1_Click()
Dim oFSO As Object
Set oFSO = CreateObject("Scripting.FileSystemObject")
oFSO.CopyFile "C:\Test1\*.*", "C:\Test2"
Set oFSO = Nothing
End Sub



------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net