On Unix I would do something like:
cat > file.txt
How can I do this on the Windows command prompt or batch file?
EDIT: Basically, I am looking for the functionality of cat
with no arguments (it reads from stdin and spits it back out to stdout).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…