the above code was grabbed from here:

https://groups.google.com/forum/?fromgroups=#!topic/microsoft.public.scripting.vbscript/X11Qb1qV_uA
 
do we need to attribute this?