我正在尝试将DOS命令的所有输出(stdout + stderr)重定向到单个文件:
C:\>dir 1> a.txt 2> a.txt The process cannot access the file because it is being used by another process.
是可能的,还是应该重定向到两个单独的文件?
windows command-line cmd pipe
cmd ×1
command-line ×1
pipe ×1
windows ×1