Command Prompt for Windows




Command Line Macros

A Command line Macro enables a new command to be created from an original command or from a series of original commands. Command line macros can also be given the same name as an original command. This allows a macro to be created to set an original commands default switches and parameters. For example, when the WinOne® Command Prompt is first installed there are a number of macros that are automatically created by the install program, such as the DIR macro for command DIR. The DIR macro enables the WinOne® Command Prompt to display a sorted directory listing by default.

The following list includes all the default marcos :-

COPY=SCOPY $*
DELTREE=DEL /s "$1"
DIR=DIR /ojf $*
DU=DISK "$1\"
EDIT=NOTEPAD "$1"
LOGOFF=EXIT /l
LS=DIR /owl $*
MOVE=SMOVE $*
REBOOT=EXIT /b
SHUTDOWN=EXIT /s

Command line Macros can be created, deleted and listed using the MACRO command.