home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Micro R&D 1
/
MicroRD-CD-ROM-Vol1-1994.iso
/
os20
/
cli
/
newlist82.lha
/
Scripts
/
NewDpat
< prev
next >
Wrap
AmigaDOS Script File
|
1993-06-19
|
893b
|
33 lines
.key com/a,pat/a,dir/a,opt1,opt2,opt3,opt4
failat 21
.bra {
.ket }
; This is a modified Commodore s:dpat for use with newlist.
;
; Use this script to emulate wildcards for programs that do not use them.
;
; NewDpat will use 1 wildcard and 1 directory.
;
; ie NewDpat "lharc x" dh0:* dh1:
;
; I know this is a bad example, but to tell you the truth, I've never
; ever had to use dpat in my 5 year career with the Amiga.....
echo >ENV:qw{$$} "{dir}" first=256
IF $qw{$$} EQ ":"
nl {pat} -E "{com} \'%P\' \'{dir}%n\' {opt1} {opt2} {opt3} {opt4}"
skip doit
ENDIF
IF $qw{$$} EQ "/"
nl {pat} -E "{com} \'%P\' \'{dir}%n\' {opt1} {opt2} {opt3} {opt4}"
skip doit
ENDIF
IF EXISTS {dir}
nl {pat} -E "{com} \'%P\' \'{dir}/%n\' {opt1} {opt2} {opt3} {opt4}"
ELSE
nl {pat} -E "{com} \'%P\' \'{dir}\' {opt1} {opt2} {opt3} {opt4}"
ENDIF
lab doit
;do wildcards for double arg command