String of thoughts on science, technology and programming
Saturday, January 05, 2013
To sequence one command after another one can use & to do it. For example:
set test=hello & call echo %test%
set test="hello" sets the value and call echo %test% shows the result to the standard output. Note also the use of call instruction, that forces the interpreter to re-interpret echo otherwise it will not see changes made.