batch file - Why I cant redirect the output of PRINT to console? -
this:
@echo ###########>printable.txt @print /d:con printable.txt 1>nul 2>nul
always produces output console:
########### ♀
not matter how output redirected .piping more or findstr not help.
is possible redirect print console?
redirection works stdin, stdout, , stderr file streams. pipe works exclusively via stdout.
you can direct print write console device, causing output appear on screen. not going through stdout or stderr, not good.
print writes directly device, not stdout or stderr. don't think there way want.