Results 1 to 2 of 2

Thread: Copy Not Move

  1. #1

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Post

    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

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    Try using the FileSystemObject with the CopyFile Method..
    Code:
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width