Dude, if you are going to provide him your solutions in full , go ahead. Depending on my mood, I am not obliged to solve everything for OP.
If i really want to nitpick about your code, i would do that, but i will not. for example, Input argument checking, input file format ambiguity, therefore, would you just give it a rest...
To sum it up.
Billrich. you are not a programmer. That in and of itself is not a problem- I am not a programmer by profession either- but I have actually read "real" programming books, including the language reference for a number of programming languages as well as their corresponding programmers guides, and I'm sure ghostdog has read a few as well. Not to mention Code Complete(bloody fine book), either. I wrote a complete replacement for the very same FileSystemObjects we are using here, that adds far too many features too count. Shall I present the code for that so you may point out if I should be calling CloseHandle() somewhere I forgot? Or will you actually understand that the class based implementation will call CloseHandle() in the Terminate Event. Or more precisely, do you understand events? Probably not.... but you know what? That's fine- Your Learning VBScript. This is good. It's good to ask questions about code. But to make declarations that the program doesn't work when the error message is quite plain is nothing short of plain ol' silly.
Was it a text file? come on, admit it. it was a text file you renamed to doc. it's ok. Have some pie. Not all of it, I want some.
I'm tired of your pedantic arguments against other peoples VBScript or Batch with some frivolous claims as "it does not work" because you can't figure out the commandline syntax, or because you decide that, despite any input format the OP defines, you'll call shenanigans because the batch or VBS script breaks when you insert characters, or because the code isn't "forward thinking" in your eyes, or some other futile attempt at whatever maligned argument you can muster, and if you can't think of any, you just make up some kind of analogy involving farm animals.
I might also add that the scripts I put up here I just kinda whip up as fast as possible. But I always test it. If not posting a "sample output" inconveniences you that's a *censored* shame.