How can I output a text file to a TCP port on Windows Vista using built-in software? For example,

type TextFile.csv | telnet localhost 1979

This doesn't work: The process tried to write to a nonexistent pipe.

  • Shouldn't this be moved to Super User? Sep 14, 2009 at 15:12

2 Answers 2


The tool to use is probably the windows ports of netcat.

  • Dang... beat me to it. ;)
    – Sean Earp
    May 19, 2009 at 21:27
  • If you're at work, some AV applications (McCrappy) will identify netcat as a virus. May 19, 2009 at 21:48
  • SEP identified it as a virus, and it worked great. I replaced "telnet" with "nc" and the pipe worked as expected. Thanks! May 19, 2009 at 22:00

Hak5 talked about just this in a recent episode.


The discussion starts around 12 minute mark.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.