Differences
This shows you the differences between two versions of the page.
en:docs:cmd:file:mult [2014/05/24 09:13] – created valerius | en:docs:cmd:file:mult [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Multiple Filenames ===== | ||
- | |||
- | Most file processing commands can work with multiple files at one time. To use multiple file names, you simply list the files one after another on the command line, separated by spaces. You can use wildcards in any or all of the filenames. For example, to copy all //.TXT// and //.DOC// files from the current directory to drive A, you could use this command: | ||
- | |||
- | < | ||
- | [c:\] copy *.txt *.doc a: | ||
- | </ | ||
- | |||
- | If the files you want to work with are not in the default directory, you must include the full path with each filename: | ||
- | |||
- | < | ||
- | [c:\] copy a: | ||
- | </ | ||
- | |||
- | Multiple filenames are handy when you want to work with a group of files which cannot be defined with a single filename and wildcards. They let you be very specific about which files you want to work with in a command. | ||
- | |||
- | When you use multiple filenames with a command that expects both a source and a destination, | ||
- | |||
- | Like [[en: | ||
- | |||
- | If you have a list of files to process that's too long to put on the command line or too time-consuming to type, see [[en: | ||