1

I have a bat script which has block1 commands. I call the block1 like this

> mybat block1

and it executes the following

:BLOCK1
CALL some command InputString
goto :EOF
)

How can I change InputString so that it executes AnotherInputString or any other input

CALL some command AnotherInputString

1 Answer 1

1

"If there is another command line argument, execute that argument as a command. Otherwise, continue."

:Loop
IF "%1"=="" GOTO Continue
    CALL some command %1
SHIFT
GOTO Loop
:Continue
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.