home *** CD-ROM | disk | FTP | other *** search
- ;; ZEX command file to process files in a queue on disk. The 'process'
- ;; to perform is passed to this file as the first parameter. As only
- ;; the names and not the extents of files are stored in the queue,
- ;; the second parameter passed is presumed to be an extent. As many
- ;; as three more parameters may be passed also; they will be unchanged.
- ;; Note that the presumed extent is 'stuck' directly onto the filename
- ;; and therefore the second parameter MUST be an appropriate extent.
- ;; The name and extent cannot be concatenated directly in this ZEX
- ;; file; to do so would require passing SH a token like '%QP$2', which
- ;; it would fail to recognize as a legitimate variable name. Instead
- ;; the concatenation is done by the alias QSPECIAL. Another slightly
- ;; more elegant way to do it, not requiring an additional file, would
- ;; be to do SETFILE 1 %QP right after the label FIRST and then
- ;; concatenate the references to FILE 1 and parameter number two
- ;; right here in the ZEX file. The problem is that I haven't found any
- ;; way to refer to these system files from within ZEX files; The Manual
- ;; is still in limbo -- perhaps it will have an answer when it appears.
- ;; -RDN
- SH
- SHVAR QP %QH;GO CLTAIL $2 $3 $4 $5
- GOTO FIRST
- ;=LOOP
- SHVAR SWITCH SHVAR QP %%%QP
- %SWITCH
- ;=FIRST
- QSPECIAL $1 %QP $2 $3 $4 $5;IF %QP=%QT;GOTO END;ELSE;XIF;GOTO LOOP;FI
- ;=END
- XIF
- SHEXIT
- ;; end of ZEX command file