Tuesday, November 8, 2016

Windows command line: pipe command output to second command

for /F "tokens=*" %i in ('temperature') do prismcom.exe usb %i
If running in a batch file, use %%i instead of just %i (in both places).

Reference
http://stackoverflow.com/questions/14574170/how-do-i-use-a-pipe-to-redirect-the-output-of-one-command-to-the-input-of-anothe