Timeline for How can I both pipe and display output in Windows' command line?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 4, 2014 at 19:36 | comment | added | Jet |
@ThomasW, it will not execute the command twice. As you can see, first echo %1 will just print %1 parameter on screen, and second echo will send %1 parameter to %2 program. Of course it has some restrictions, but generally solves the problem.
|
|
Aug 1, 2014 at 21:42 | comment | added | Thomas Weller | If applied to arbitrary problems, this would execute the command twice, first time printing the output on the console, second time piping to the target. That might not work, e.g. if the command itself changes the state of files etc. on hard disk. | |
Aug 1, 2014 at 20:48 | history | answered | Jet | CC BY-SA 3.0 |