how can I run multiple commands at once from windows command line? i want to set a couple of env variables and use them in the c++ program. Like:
set VAR=Hello and set VAR2=BYE
and same program should do:
echo %VAR% and echo %VAR2%
and the output should be:
Hello BYE
How to achieve this in c/c++ ? any way to do this using system() function ?