DOS Wildcards

The Copy File action allows you to use DOS wildcards as part of the path in the Copy this file panel option. DOS wildcards are characters that can be used to stand-in for unknown characters in file names. There are two wildcards:

Wildcard

Description

*

An asterisk – will match any combination of characters

?

A question mark – will match any single character

There are many ways you can combine these wildcards to copy more than one file. Below are a few examples of how you can use the wildcards with the Copy File action:

Example 1:

To copy all of the files in a folder:

C:\myfiles\*.*

This finds any number of characters in the filename and the extension name of the file. All of the files in the folder named myfiles will be copied.

Example 2:

To copy all of the file types with the extension doc in a folder:

C:\myfiles\*.doc

The * wildcard will find all files (however long their file name) with the extension .doc

Example 3:

To copy all files in a folder that contains sequential numbers:

 C:\myfiles\report?.*

This will copy all files beginning with report followed by any single character, such as, report1, report2 and so on.

Note:
In this example, because we used the ? wildcard, report10, report11 etc. would not be copied – you could have used the * wildcard to do this.

Note:
The web offers many good examples of DOS wildcards; simply type the keywords DOS wildcards into your preferred search engine on the web.

Related Topics:

Introducing the File Management Actions

the Copy File action

Choosing an Action