Friday, October 5, 2007
appropriate DOS file name structure, wild card characters
All file names in DOS must have the following structure [description of which drive and/or directory to find the file] filename [.extension]. Things in [ ] are optional. A filename doesn’t need an extension but if you do put the extension it has to be a maximum of 3 characters long and must be preceded by a period “.”. File names must be unique. The filename in DOS is made up of a string of up to 8 acceptable characters. Acceptable characters for DOS file names are as followed: A-Z, 0-9, $, &, #, @, ! , ‘, (), -, {}, _, ^, ~, and `.Wild card characters (also known as global file-name characters) function just as they would in a card game in DOS. A wild card can take on any identity of another card like for example is an Ace is wild, then it can be a King, 6 etc…There are 2 wild card characters * and ?. The * character functions in this way. It can represent any 0 or more characters of a file name. The ? character can represent any 0 or one character of a file name. So for example if you type in dir *.doc, the directory finds all files with the .bat extension but if you type dir ?.doc the directory finds all files with a filename of one character(remember you need a filename with a minimum of one character but the ? wild card character can represent 0 OR 1 character).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment