- Specifies arguments for the command specified earlier.
You can use the following redirection operators in this box:
<
Reads stdin from file.
>
Writes stdout to file.
>>
Appends stdout to file.
2>
Writes stderr to file.
2>>
Appends stderr to file.
2> &1
Sends stderr (2) output to same location as stdout (1).
1> &2
Sends stdout (1) output to same location as stderr (2).
In most cases, these operators are applicable only to console applications.
You can use the following redirection operators in this box:
<
fileReads stdin from file.
>
fileWrites stdout to file.
>>
fileAppends stdout to file.
2>
fileWrites stderr to file.
2>>
fileAppends stderr to file.
2> &1
Sends stderr (2) output to same location as stdout (1).
1> &2
Sends stdout (1) output to same location as stderr (2).
In most cases, these operators are applicable only to console applications.
ref:
https://msdn.microsoft.com/en-us/library/kcw4dzyf.aspx
沒有留言:
張貼留言