40
在一個標準的Windows .cmd文件,我可以將消息發送到做簡單的標準輸出:如何從cmd向stderr發送消息?
echo message
我怎樣才能將消息發送到標準錯誤?
例:
比方說,我有劇本parent.cmd包含:
call child.cmd 1>>stdout.log 2>>stderr.log
,並含有一個孩子:
:: Writes a message to stdout
:: (which in the parent is piped to stdout.log)
echo message
:: Now I want to write a message to stderr
:: (which in the parent is piped to stderr.log)
???