Sign in to follow this  
Followers 0
MPlb

Filecopy and wildcards

4 posts in this topic

I am trying to use the filecopy command to copy the entire contents of one folder to another (without creating the folder name).

The command I am using is:

FileCopy ("x:\myfolder\*.*", "y:\hisfolder\",9)

I just cannot get this to copy the files... However, if I use something like:

FileCopy ("x:\myfolder\a*.exe", "y:\hisfolder\",9)

FileCopy ("x:\myfolder\b*.exe", "y:\hisfolder\",9)

.

.

.

FileCopy ("x:\myfolder\z*.exe", "y:\hisfolder\",9)

This works fine but is not nice and I may miss some files...

How can I get the *.* wildcard working with FileCopy?

Thanks

Share this post


Link to post
Share on other sites

Won't DirCopy also create the directory name that I'm copying from?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0