ASET v1.0 -- Advanced SET command
Copr (c) 1992,1993 Richard Breuer. ASET is freeware. No warranties.
Notes:
ASET is a powerful tool for batch files. Refer to the manual or the
quick reference for details about each function. Please note that ASET,
unlike the other RUTILS programs, does not accept combined options, ie.
-en is not allowed. You must use {\tt -e} -n instead.
Examples:
ASET BUF = BUFFERS
Assigns the value of the BUFFERS directive in CONFIG.SYS to the shell
variable BUF. Use %BUF% to access the value in your batch file.
ASET /fDEFAULT.SET
Reads DEFAULT.SET and sets the environment variables appropriately. The
file is expected to contain lines like "A := SIN(3*4-11)+COS(SIN(1))"
or "B = FEXPAND('.')".
ASET X:=SIN(%Y%)+%Z%*COS(%Y%) /* assign X the result of a formula */
ASET -n -f /* read assignments from stdin */
ASET -e -n X:=BUFFERS gt 20 /* ERRORLEVEL 1, if condition holds */
ASET -p PWD=DIR /* assign PWD the current directory */
CMDGEN | ASET -f /* process CMDGEN's output */
|