.key W,H,NOBOOT/S,TIME/S
.bra {
.ket }

; $VER: Special Karate Launcher v1.0 (11/1o/2oo3) By PureLamers

; Use this Script to Launch Your Karate Script

; Setting noticeable string value (script and laoding script)
set script s/D.dbm
set boot s/L
set type ""
set type s/2k4.nfo  ;";" this line to deactivate readme printing after demo

; and now for the real script...
Set Zero 0

if "{W}" EQ ""
;	echo "no W"
	Set Zero 1
endif

if "{H}" EQ ""
;	echo "no H"
	Set Zero 1
endif

if $Zero EQ 1
;	echo "no W or no H"
	Set w " "
	Set h " "
else
	Set w {W}
	Set h {H}
endif

UnSet Zero

;echo "h (" {H} ") =>" $h "| w (" {W} ") =>" $w "| s" {S}

if {TIME} eq "time"
	Date
endif
 
if "{NOBOOT}" eq ""
	karate s=$script b=$boot h=$h w=$w
else
	karate s=$script h=$h w=$w
endif

if {TIME} eq "time"
	Date
endif

if $type
	multiview $type
endif

Unset h
Unset w
Unset script
Unset boot
Unset type