-
Apr 25th, 2006, 05:16 AM
#1
Thread Starter
Fanatic Member
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"
-
Apr 25th, 2006, 07:09 AM
#2
Lively Member
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.
-
Apr 25th, 2006, 08:02 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|