- May
- 62
- 1
Code:
[C:\batch]type foo.btm
color red on bri yel
echo plain echo
echo to file > file
echo pipe to sort | sort /o sortfile
echo pipe to tee | tee teefile
echo my colors were canceled
[C:\batch]foo
color red on bri yel
echo plain echo
plain echo
echo to file > file
echo pipe to sort
echo pipe to tee
pipe to tee
echo my colors were canceled
my colors were canceled
[C:\batch]
It's a bit of a nuisance, as I'm putting out error messages both to the console and to an error file. But I can work around it by just doing two separate echo statements.