Differences
This shows you the differences between two versions of the page.
en:docs:cmd:file:exclusion [2014/05/24 08:36] – created valerius | en:docs:cmd:file:exclusion [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== File Exclusion Ranges ===== | ||
- | |||
- | Most internal commands which accept wildcards also accept file exclusion ranges to further define the files that you wish to work with. **CMD.EXE** examines each file name and excludes files that match the names you have specified in a file exclusion range. | ||
- | |||
- | A file exclusion range begins with the switch character (usually a slash), followed by a left square bracket and an exclamation mark (" | ||
- | |||
- | Inside the brackets, you can list one or more filenames to be excluded from the command. The filenames can include wildcards and extended wildcards, but cannot include path names or drive letters. | ||
- | |||
- | The following example will display all files in the current directory except backup files (files with the extension .BAK or .BKP): | ||
- | |||
- | < | ||
- | [c:\] dir /[!*.bak *.bkp] *.* | ||
- | </ | ||
- | |||
- | You can combine file exclusion ranges with [[en: | ||
- | |||
- | < | ||
- | [c:\] dir /[s10k] /[d-7] /[!*.c *.h] *.* | ||
- | </ | ||
- | |||
- | File exclusion ranges will only work for **CMD.EXE** internal commands. The [[en: | ||