Results 1 to 2 of 2

Thread: copy folder

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    copy folder

    I have a folder:
    c:\program files\vih\master8

    which has about 100 folders in it, and each of the folders has a few files in it

    can I copy all of the folders in the "master8" folder to "c:\program files\vih"

    i'm using Access 97

    thanks,

    Dimava
    NXSupport - Your one-stop source for computer help

  2. #2
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310
    Yes you can, add a reference to 'Microsoft Scripting Host' to your application, and then make this function:

    VB Code:
    1. Dim fso As New Scripting.FileSystemObject
    2. Dim fld As Scripting.Folder
    3.  
    4. For Each fld In fso.Folders
    5.    fso.MoveFolder fld.path, "c:\program files\vih"
    6. Next fld
    7.  
    8. set fso = nothing

    I did it without code editor, hope it helps you out.

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