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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -