Discussion Locked

Sending TCP/IP Utility Results to a File

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What are/is the command-line parameter(s) that are/is added to a command line tcp/ip utility (ipconfig, netstat, etc.) to cause the results to be sent to a file (such as notepad) as opposed to the console?

8 replies

by wirejockey

Open a command windows, type the command you want; ie. netstat > whatever.txt. Where whatever.txt is the name of the file you want.

by thenetworker

WireJockey beat me to it!

One note though, ">" between the command and the file name will create a file, or overwrite it if it already exists. Using ">>" will append the results to the end of the file.

I use this for repeated tracerts, or ifI want to check for a file on the machines in my shop, I'll add a "if exist file.com then ipconfig /all >> exist.txt"

By doing that I get the host name and ip address.

Mike Scott
http://godofdata.tripod.com

by thenetworker

WireJockey beat me to it!

One note though, ">" between the command and the file name will create a file, or overwrite it if it already exists. Using ">>" will append the results to the end of the file.

I use this for repeated tracerts, or ifI want to check for a file on the machines in my shop, I'll add a "if exist file.com then ipconfig /all >> exist.txt"

By doing that I get the host name and ip address.

Mike Scott
http://godofdata.tripod.com

This discussion is closed to new replies.