-
January 26th, 2006, 04:26 PM
#1
VB6 - copying multiple files at once
Hello All,
I've been playing with VB6 a little and was wondering how someone could code this.
I'm trying to copy several files with the same extention (ex: *.txt) from several folders to one.
the command FileCopy only allows for one file at a time (that I know of)
I tried using the shell "xcopy" command but only get the files from the directory that the VB program runs from.
I wrote:
private sub command1_click()
shell "xcopy *.txt /s c:\backup"
end sub
but I don't get the same result as when I'm in DOS.
Any suggestions, or corrections?
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
|
|