Does WMI work on Win9x? If not here is the code I have used in the past. Seems to always work for me.

code:
 
If KeyExist("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI\PNP0C0A") or KeyExist("HKEY_LOCAL_MACHINE\Enum\ACPI\*PNP0C0A")
$msg = messagebox ("This is a laptop!!","laptop",0)
Else
$msg = messagebox ("This is not a laptop!!","laptop",0)
Endif