I know nothing about VB, so God only knows what is actually causing the problem. Maybe it's perl, maybe it's VB, but I don't have the necessary skillset to tell you for sure.
But I will take this opportunity to mention
BatWrap downloadable from Joseph Casadonte's page (it's pretty old -- ~1996), for all you Win32 cats who just cant seem to live with typing perl script.pl :). You may find it helpful too, though it seems a bit counterintuitive for this issue..
Oh... And if anyone tries batwrap and notices that a final closing curly bracket on the last line of any given script is not carried over into the new batch file, I'd be interested to know.. It has worked for me before without doing this, but now every script I try to wrap, I have to edit and add a final }. I haven't really examined the code to see why this may be happening, as I just noticed it today and have been otherwise occupied. It may also be the case that I have never tried to wrap a script that has a single curly bracket on the last line before and this issue has always been present with the script.
/renz.