Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Chaining and piping?

May
12,834
163
I was very surprised to find that this doesn't work. It's old behavior and it doesn't agree with how CMD behaves.

Code:
v:\> type b1.bat
@echo off
b2.bat | findstr foo

v:\> type b2.bat
@echo off
echo foo
echo bar

v:\> b1.bat
foo
bar

v:\> cmd /c b1.bat
foo

v:\>
 
No one needs to do that. One can always
Code:
call other.btm | blah
quit
The pipe works fine with CALL. Since it was at the end of my BTM, just running it (without CALL) was the first thing that came to mind.
 

Similar threads

Back
Top