ComputerForum.com ComputerForum.com  
Go Back   Computer Forum > General Chat > General Computer Chat

Reply
 
LinkBack Thread Tools Display Modes
Old 01-26-2006, 05:12 PM   #1 (permalink)
banned
 
Join Date: Jan 2006
Posts: 54
Default 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?
jeckgo is offline   Reply With Quote


Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT +1. The time now is 07:59 PM.


Powered by: vBulletin Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2002-2008 Computer Forum and Web Design Forum