Wednesday, 1 April 2015

Batch file to ping and trace rt and save in file

Step - 1 Create folder in D Drive with folder name Batch

Step - 2 Copy below code in txt file and save with extension bat

@echo off
ping 192.168.1.10 -n 1000 > d:\Batch\"14.141.112.57 Ping %date:/=-% %time::=-%.txt"

tracert 192.168.1.10 > d:\Batch\"14.141.112.57 Trace %date:/=-% %time::=-%.txt"

No comments:

Post a Comment