.key PATTERN/A,DESTDIR/A
.bra {
.ket }

; This script can upsample many Studio 16 files based
; on pattern matching.
;
; $VER: UpsampleStudio 1.0 (12.11.97)
; By Kenneth "Kenny" Nilsen (kenny@bgnett.no)
;
; USAGE: UpsampleStudio <pattern> <destdir/>
;
; NOTE: The commands must be in the command search path. To be safe
; copy the commands in C: or add the path where you keep the commands to
; the global search path (startup-sequence: path <path> ADD).

;-- convert files

list {pattern} files lformat="echo *"Processing file '%N'...*"*nS16UpSample %P%N {DESTDIR}%N.us -i" >t:tmp.16

echo "Upsampling Studio 16 file(s).. please wait!"

execute t:tmp.16
if WARN
	echo "Error occured while upsampling files!"
	endif

echo "Done"

lab Final
