I could be misinterpreting your response to my post, but it seems a little hostile. Why?
I did not attack you or your solution. I simply said that it [the solution] could be simplified with the use of Perl. Jbarnie didn't specify the choice of language and Perl is just as valid as VB Script. Granted, Perl isn't native to Windows, but it is becoming more and more common for people to add it to their collection of scripting utilities.
This is a very simple task so why would making the script more verbose and complex than needed be best?. Neither one of us included the proper amount of error handling, so I'll leave that subject alone.
Making a script more verbose doesn't always make it easier to understand, edit, modify (hmm...isn't that the same as edit) and in this case, IMO, VB Script has syntactic noise which makes it harder to read/understand. But, to each his own.