cliff
cliff

Reputation: 49

sending multiple commands with batch

I'd like to send the command dir & pause to a separate cmd window with start, but I can't seem to find out how. I have tried start & dir & pause, but a new window pops up without running dir and pause. Any help would be great, thanks!

Upvotes: 0

Views: 100

Answers (1)

unclemeat
unclemeat

Reputation: 5207

You need to remove the first & and escape the second.

start dir ^& pause

You're starting a new command window and parsing it the command dir & pause.

& is used to run multiple commands on the same line.

Upvotes: 1

Related Questions