Wouldn't this one be even easier?
code:
SELECT Count(Name) FROM Win32_Process WHERE Name = 'calc.exe'

This should return only the number of CALC.EXE processes.

[ 17 May 2002, 20:15: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.