Alan Freedman -- The Computer Language Company - Computer Desktop Encyclopedia
Computer Desktop Encyclopedia
Longest-Running Tech Reference on the Planet

A CDE Definition

You'll love The Computer Desktop Encyclopedia (CDE) for Tech Term of the Day (TTOD)

LOOK UP ANOTHER TERM


DOS macros

See DOSkey.



DOSkey

An external DOS/Windows command that is used to display command history and create command macros (command shorthand).

DISPLAY COMMAND HISTORY
Run DOSkey with the number of commands to store, such as 200 in this example. Press F7 to display and Esc to close the history window.

        doskey /listsize = 200


CREATE AND USE COMMAND MACROS
The following example copies all the files in the current folder to the \BACKUP folder:

 macro     doskey bk = copy *.* \backup
 enter     bk
 executes  copy *.* \backup


To accept input, add "$1" as follows:

 macro     doskey bk = copy *.$1 \backup
 enter     bk gif
 executes  copy *.gif \backup


To view all the macros, enter:

       doskey /macros


SAVE THE MACROS
Macros last only for the current session. To use them again, save them in a batch file with the following command. Be sure to edit the file and add a doskey prefix to each line.

   doskey /macros > name_of_file.bat





Personal Use Only

Before/After Your Search Term
BeforeAfter
DOS batch fileDOS memory manager
DOS boxDOS Mirror
DOS commandDOS on Mac Card
DOS device namesDOS prompt
DOS directoriesDOS Recover
DOS environmentDOS root
DOS error messagesDOS Setver
DOS extenderDOS Shell
DOS fileDOS SmartDrive
DOS InterlinkDOS startup options

Terms By Topic
Click any of the following categories for a list of fundamental terms.
Computer Words You Gotta KnowSystem design
Job categoriesUnix/Linux
Interesting stuffPersonal computers
InternetIndustrial Automation/Process Control
Communications & networkingAssociations/Standards organizations
HistoryDesktop publishing
Audio/VideoGraphics
MainframesSecurity
ProgrammingHealthcare IT
System design