Results 1 to 3 of 3

Thread: copying more than 1 file

  1. #1

    Thread Starter
    Fanatic Member vivek_master146's Avatar
    Join Date
    Apr 2006
    Location
    Delhi,India
    Posts
    787

    copying more than 1 file

    hi i want to know that how to copy more than 1 file using filecopy statement.

    I tried this:
    [Highlight=VB]
    filecopy("c:\my documents\*.asp","c:\my documents\*.asp"

  2. #2
    Lively Member
    Join Date
    Sep 2005
    Posts
    69

    Re: copying more than 1 file

    You'll have to use a For...next loop, or another loop to find and store all the filenames of the folder you want to copy into an array. Then just use another loop to copy them.

    I'd write you the code but I can't test it since I'm on a school computer and we only have a really older version of VB built into word.

    Brad.

  3. #3
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: copying more than 1 file

    Use SHFileOPeration API to copy more than one file.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

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