Al_Po's example requires WMI and will thus only work under Windows 2000/XP/2003 by default.

Also, there are already a total of eight UDFs dealing with this issue usng different approaches.
_________________________
There are two types of vessels, submarines and targets.