将 Windows cmd stdout 和 stderr 重定向到单个文件

C:\>dir 1> a.txt 2> a.txt
The process cannot access the file because it is being used by another process.

答案