Copying a folder

B

Bill T

Hi,

I would like to be able to copy a set of folders from one
location to another using VBA. FileCopy won't do it.
Cannot find anything that will. Am I missing something?
Any suggestions appreciated.

Bill
 
B

Bill T.

Wayne,

Thanks for the reply.

Yes. I am familiar with that method, but I was hoping for
something a little more sophisticated. When you shell out
to DOS commands, there is always the issue of pausing
until the DOS command completes its work.

Thanks,

Bill
 
W

Wayne Morgan

You can use FileCopy in conjunction with the Dir command. You would use the Dir command to
go through the files in the folder one at a time, passing the name to FileCopy until you
are done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top