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.

In reply to Re: Executing *.bat containing perl using VB Shell by renz
in thread Executing *.bat containing perl using VB Shell by ajanth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.