I tried using 2>
, but it still doesn't save the error in the text file.
C:\>telnet abc 2> test.txt
Connecting To abc...Could not open connection to the host, on port 23: Connect failed
I tried using 2>
, but it still doesn't save the error in the text file.
C:\>telnet abc 2> test.txt
Connecting To abc...Could not open connection to the host, on port 23: Connect failed
Use >>
to append the output of a command (for either STDOUT or STDERR) to a file:
C:>telnet abc >> test.txt