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
cmd /c call set VAR=foo & echo %VAR%
- this worked ok i.e. set is called with "call set"
.You can set call before each of the commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With