Also, why are the $max values defined as strings? It causes unnecessary data type conversions.

Also, have you tested this with non-win9x systems? Seems to me you might need something like this:

code:
 
IF @inwin=1
$max=2
REDIM $kixfl[$max+1]
$kixfl[0]='kix'+$msg+'.ok'
$kixfl[1]='kix32.exe'
$kixfl[2]='wkix32.exe'
ELSE
$max=5
REDIM $kixfl[$max+1]
$kixfl[0]='kix'+$msg+'.ok'
$kixfl[1]='kix32.exe'
$kixfl[2]='wkix32.exe'
$kixfl[3]='kx16.dll'
$kixfl[4]='kx32.dll'
$kixfl[5]='kx95.dll'
ENDIF



[ 01. May 2003, 20:31: Message edited by: Jack Lothian ]
_________________________
Jack