Jump to content

Filecopy and wildcards


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...