Convert Ping or Tracert Output to Text File?

S

Shel

Is there any way to convert the results of a ping or tracert to a text
file?

Many thanks.
 
W

Will Denny

Hi

After you have entered the ping/tracert command at the command prompt, add
the following on to the end

That will create a file named 'ping.txt' in the folder where you executed
the ping command. The same works for tracert. You can name the .txt file
anything you like.

--


Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups
 
S

Shel

Hi

After you have entered the ping/tracert command at the command prompt, add
the following on to the end


That will create a file named 'ping.txt' in the folder where you executed
the ping command. The same works for tracert. You can name the .txt file
anything you like.

I tried ping pcworld.com ping.txt.
I got the response, "Bad parameter ping.txt." What am I doing wrong?
 
W

Will Denny

Shel said:
I tried ping pcworld.com ping.txt.
I got the response, "Bad parameter ping.txt." What am I doing wrong?

Hi

Copy/paste the following into a command prompt and then press Enter:

ping pcworld.com > ping.txt

--


Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups
 
W

Will Denny

Shel said:
I tried ping pcworld.com ping.txt.
I got the response, "Bad parameter ping.txt." What am I doing wrong?

Hi

I meant to add - you need the re-direction arrow

so as to create the .txt file.


--


Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups
 
M

Mark Dormer

Just to add something that may be useful.
You can use >> if you want to append the output to the file

eg
ping pcworld.com >> ping.txt.

Regards
Mark Dormer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top