You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
2.6 KiB

SAMPLE ALIAS.CMD FILE FOR USE WITH NZCOM
----------------------------------------
; This alias provides a response to the DIR command when there is no
; resident DIR or transient DIR.COM.
DIR sd $*
; This alias provides a directory-display command in which the file
; specification is automatically wildcarded. It saves the trouble of
; having to type asterisks manually.
D=SD/ sd $td1$tu1:$tn1*.$tt1* $-1
; This alias is used with the syntax NAME DU:DIR PW or NAME DIR PW to assign
; the named directory DIR to the designated (or current) drive/user. The
; second token is optional; if present, it will assign a password as well.
NAME=SETNAME editndr $td1$tu1:$tn1 $2 \x
; This alias will save the currently defined named directories in the file
; A0:NZCOM.NDR. If a command tail beginning with 'L' (for library) is
; included, the file will be put into NZCOM.LBR so that it will automatically
; be loaded at Z-System cold boot and the individual NDR file will be erased.
PUTNDR savendr a0:nzcom;if eq $1 l*;lput a0:nzcom a0:nzcom.ndr;era a0:nzcom.ndr;fi
; This alias will allow you to examine a file. It loads the file into the
; TPA and then uses the RCP peek command to examine it. It will load a file
; from the current directory even if that directory is not on the path.
LOOK get 100 $td1$tu1:$tf1;p 100
; This alias removes NZCOM and restores the operation of CP/M.
OFF=CPM=EXIT a15:nzcpm
; This alias provides a shorthand for the CRUNCH command.
CR,UNCH crunch $*
; The following pair of aliases automates a recursive invocation of some
; other command line. It is invoked as RECURSE COMMANDLINE.
REC,URSE if nu $1;echo;echo %< s%>yntax: %<$0 cmdname [parameters];echo;else; recurse2 $*;fi
RECURSE2 fi;$*;if in r%>un %<"$1" %>again? ; $0 $*
; The following pair of aliases automates the repeated invocation of a
; command that takes a single argument. It is invoked as
; REPEAT COMMAND ARG1 ARG2 ... ARGN. The command COMMAND is executed
; in sequence, first with ARG1, then with ARG2, and so on.
REP,EAT if nu $2;echo;echo %< s%>yntax: %<$0 cmdname arg1 arg2 ...;echo;else; repeat2 $*;fi
REPEAT2 fi;$1 $2;if ~nu $3; repeat2 $1 $-2
; Memory display aliases -- these aliases use the peek command to show the
; contents of various system modules
PBIOS=BIOS p $ab
PCCP=CCP=PCPR=CPR p $ac
PDOS=DOS p $ad
PENV=ENV p $ae
PFCP=FCP p $af
PIOP=IOP p $ai
PMCL=MCL p $al
PMSG=MSG p $am $+m004f
PNDR=NDR p $an
PPATH p $ap $+p000f
PRCP=RCP p $ar
PSHL=PSHELL=SHL=SHELL p $as $+s007f
PXFCB=XFCB=PFCB=FCB p $ax $+x0023