Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {cmd.exe} ping [target] -n [seconds] > "[duration][target]PingTest%date:/=-%%date::=-%".txt
- =example=
- C:\>ping 8.8.8.8 -n 180 > "3minGoogleDNSPingTest%date:/=-%%time::=-%".txt
- =note=
- This is NOT a batch file. You must manually launch the Windows Command Line Interface and enter the string above with your chosen parameters. Beyond that, the process is automated. You will not see the streaming output in your console. The text file will not populate until the test is complete - until that time do not open it. The console will relinquish focus back to your text cursor when the process is finished. You will not be impeded from other activity outside the console window. The text file will contain all response lines regardless of the length of the operation.
Advertisement
Add Comment
Please, Sign In to add comment