Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by John Posner

  1. John Posner

    Command grouping and GOTO label

    Thank you all for your helpful comments! Does anyone think that this situation merits a sentence in the Command Grouping section, stating that labels shouldn't be used in a command group? Tx, John
  2. John Posner

    Command grouping and GOTO label

    Thanks, Charles, but I'm not convinced. :) Your explanation doesn't account for the error I got when removing the "goto end" statement. And it doesn't explain the behavior of this script: if "%1" == "help" ( echo MARK 1 echo MARK 2 :foobar echo MARK 3 ) Script invocation: > test2 help MARK...
  3. John Posner

    Command grouping and GOTO label

    Consider this batch program, stored in "test.btm": @echo off if "%1" == "" goto helplabel if "%1" == "help" ( :helplabel echo this echo is echo helpful goto end ) :end With CMD.EXE, both "test" and "test help" produce the...
Back
Top