Differences
This shows you the differences between two versions of the page.
en:docs:cmd:file:incl [2014/05/24 09:21] – created valerius | en:docs:cmd:file:incl [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Include Lists ===== | ||
- | Any internal command that accepts multiple filenames will also accept one or more include lists. An include list is simply a group of filenames, with or without wildcards, separated by semicolons [;]. All files in the include list must be in the same directory. You may not add a space on either side of the semicolon. | ||
- | |||
- | For example, you can shorten this command which uses multiple file names: | ||
- | |||
- | |||
- | [c:\] copy a: | ||
- | |||
- | |||
- | to this using an include list: | ||
- | |||
- | |||
- | [c:\] copy a: | ||
- | |||
- | |||
- | Include lists are similar to multiple filenames, but have three important differences. First, you don't have to repeat the path to your files if you use an include list, because all of the included files must be in the same directory. Second, if you use include lists, you aren't as likely to accidentally overwrite files if you forget a destination path for commands like COPY, because the last name in the list will be part of the include list, and won't be seen as the destination file name. (Include lists can only be used as the source parameter - the location files are coming from - for COPY and other similar commands. They cannot be used to specify a destination for files.) | ||
- | |||
- | Third, [[en: | ||
- | |||
- | < | ||
- | [c:\] dir *.txt *.doc | ||
- | </ | ||
- | |||
- | will list all the //.TXT// files with a directory header, the file list, and a summary of the total number of files and bytes used. Then it will do the same for the //.DOC// files. However, | ||
- | |||
- | < | ||
- | [c:\] dir *.txt;*.doc | ||
- | </ | ||
- | |||
- | will display all the files in one list. | ||
- | |||
- | Like [[en: |