How can I print out contents of cmd window?

I am having connectivity issues with one of our servers. I would like to open a cmd  window and ping ther server, then release and renew the IP and then ping the server again.  I know how to do all that- what I don't know how to do is how I can save those results to a text file so I can send them to someone else via email.  Any way to do that?
snyperjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ashish PatelCommented:
to get the output to a file we use redirecting in dos, but then you will not be able to look the results in the cmd window, you will have to check the file always. like this

ping www.google.com >> output.txt
0
Ashish PatelCommented:
or something like this

ping www.google.com -t >> output.txt

and to see the current results open another cmd window and go to the path where you have your output.txt being created and use type command like below

type output.txt

0
Toni UranjekConsultant/TrainerCommented:
Right click in command prompt, select Mark, mark text, press Enter key (copy), go to notepad and paste.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.