1.

Solve : Generate Ping Test Report?

Answer»

Hi all,

I'm a beginner of Dos Command.

I would like to WRITE a batch file to GENERATE a ping TEST report.

echo %date% %time%
ping www.netvigator.com -n 200

I can run the above command in the command promt, but after I save it on the .bat file, it cannot run PROPERLY, it seems loop continuous...

Is dos command support to generate the content to a txt file?well what "loop" are you experiencing?

the ping is set to keep pinging untill it hits 200.

CODE: [Select]-n count       Number of echo requests to send.

can you explain more of what is happening?You can make a report of ping.


Code: [Select]echo %date% %time%>>"c:\report.log"
ping www.netvigator.com -n 200 >>"c:\report.log"

You can change the path as per your requirement.

I hope you are happy


 

Thanks and regards
Vishu



Discussion

No Comment Found