On Mon, Jun 1, 2009 at 2:37 PM, Micheal Espinola Jr
<[email protected]> wrote:
> Shouldn't have to.  A proper CALL statement should work fine in a single
> script.

  For those who aren't aware, you can use CALL to facilitate
return-from-subroutine functionality (like GOSUB in BASIC).

@ECHO OFF
CALL :foo Hello
CALL :foo Goodbye
EXIT /B
:foo
ECHO Subroutine says: %1
EXIT /B

  It beats nesting parenthesis fifteen levels deep.  :)

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to