>>An even better solution is available in the WSH's VBScript.RegExp object, which can construct complex regular expressions and evaluate them on demand, using standard regular expression matching masks. It requires installation of WSH v 2.0; the RegExp object is documented in the WSH docs pertaining to VBScript, and is covered in detail in Wrox Press' "VBScript Programmer's Reference Manual". The masking requirement outlined above is well within the capability of the VBScript.RegExp object's pattern definition capability. I'm not going to write the code to do it, though.
>
>Ed,
>
>You have me totally convinced about WSH, but after I love you virus I disabled it. How does one get the benefits without the danger?
>
Considering the danger from things like the ILOVEYOU virus are not dependent of WSH - I could wreak just as much havoc with a .BAT or .EXE attachment, the solution is to fix the problem with your email software, like MS did with outlook, and not permit directly-executable attachments to come it.
If you feel WSH is a danger, better not install Win2K or ME, either.