I'm attempting to try the Sample script on page 18 of the KiXtart 2001 manual.

$Drives = GetObject("winmgmts:").ExecQuery("select Name,DriveType from Win32_LogicalDisk")

if @error <> 0
? @error + " / " @serror
else
$FoundT=0
for each $Drive in $Drives
? $Drive.name
if $Drive.name = "T:"
$FoundT = 1
endif
next
endif

? "Results of t " + $FoundT get $x

This works as expected using WinXP. When I try it using Win98 I get the following error.
6 The handle is invalid.