MCA,

Thanks for your response on this..

Two questions..

Question - (1)
Can't you replace:
code:
  $os=""
$os_dos=@dos
SELECT
CASE ($nt_mode = "yes") AND ($os_dos = "5.1") ; - Windows XP -
$os="XP"
CASE ($nt_mode = "yes") AND ($os_dos = "5.0") ; - Windows 2000 -
$os="W2K"
CASE ($nt_mode = "yes") ; - Windows NT -
$os="NT4"
CASE ($nt_mode <> "yes") AND ($os_dos = "4.90") ; - Windows ME -
$os="ME"
CASE ($nt_mode <> "yes") AND ($os_dos = "4.10") ; - Windows 98 -
$os="W98"
CASE ($nt_mode <> "yes") AND ($os_dos = "4.0") ; - Windows 95 -
$os="W95"
CASE 1
$os="???" ; - undetermined -
ENDSELECT

With simply -
$os=@PRODUCTTYPE

With pre-4x versions of KiXtart that this SELECT..CASE..ENDSELECT code would be valid. But, since we are using the newer versions, we could trim down some of the code.

I can also understand trying to keep the same code for all versions you have available for people to download.

Question - (2)
Debugging would be helpful in Development, but do we need it in production?

For example:
code:
  $debug_mode="no"
IF (len(ExpandEnvironmentVars(CHR(37)+"kix-debug"+CHR(37))) <> 0)
$debug_mode="yes"
ENDIF

Or - WSTART2.KIX

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's