running multiple commands in windows command line

Viewed 9041

how can I run multiple commands at once from windows command line? In *nix environment I can do:

export VAR=foo; echo $VAR

The closest way I was able to find is this:

set VAR=foo & echo %VAR%

however when I "echo" the VAR is not set. I need all commands to be executed under the same process

1 Answers
Related