beautypg.com

Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 22

background image

2-10 ROM-DOS 6.22 User Manual

7/9/98

Examples

DIR outputs a list of all of the files in the \TEST directory with the
extension .EXE:

DIR c:\TEST\*.exe

Searches for a file and only knows that it starts with a particular letter,
for example D:

DIR D*.*

This displays all of the files in the current default directory that start
with the letter D and have any extension.

Copies an entire group of files so that with one simple command you
had reserve copies:

COPY c:\*.BAT b:\*.BAK

This copies all of the files with a .BAT extension from the c: drive root
directory onto the b: drive. The files on the b: drive all have a new
extension of .BAK.

The question mark only substitutes for a single character at a time. To
locate all of the files that had four character file:

DIR b:\????.*

DIR displays a list of all of the files on the b: drive that have exactly
four characters in the file name and any extension.

The question mark can also be used to match a single specific
character in a file name:

REN TEST?.BAT TEST?.OLD

This command renames all files that have TEST as the first four
characters in the file name, followed by any single character and the
.BAT extension. The files retain the same TEST? file name, but have a
new extension, .OLD.