The best P2P software: Microsoft P2P
http://www.pcmag.com/article2/0,1895,2151247,00.asp
Ben, blogging天道酬勤 Confucius said: He who works hard gets well paid. |
A program outputs message. Where there is error occurred, the error message is also output to your monitor. So there are two kinds of output message:
If you redirect your output to a file using "dir noexist > output.txt", you get:
Now you look into the output.txt, you can see
What does that mean? That means, "File Not Found" is error message, while the "Volume in drive...." is standard output message. What you see in the 1st picture is a combination of error message (2) and standard output message(3).dir noexist 1> output.txt
Redirect the standard output message (identifier=1) to output.txt
dir noexist 2> output.txt
Redirect the error message (identifier=2) to output.txt
dir noexist 1> output.txt 2> error.txt
Redirect the standard output message (identifier=1) to output.txt , and error message (identifier=2) to error.txt
dir noexist > output.txt
Redirect the standard output message (identifier=1, which is default) to output.txt
dir noexist > output.txt 2>&1
Redirect both standard output message and error message to output.txt
IF %errorlevel% 1 GOTO errorcontrolto take care of exception. But in my situation I only want to write down what we can see from the monitor, so I don't use it.
Labels: Programming