Is it possible of a single command to two different files/devices?
echo Hello World>lpt1>con
Is it possible of a single command to two different files/devices?
echo Hello World>lpt1>con
You could send the output to a variable using a one-liner:
FOR /F "tokens=*" %%g IN ('echo Hello World') do (SET VAR=%%g)
Then, you could send that to a file:
echo %VAR%>>file.txt
echo %VAR%>>file2.txt