Supp guys,
I need some help to create an batch file that colect ping and tracert info form some IP's in a txt filer. And I have no idea how to do it, can anyone help me with?
Thx ppl!
Batch to create an ping and tracert log
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Batch to create an ping and tracert log
Just stick a >>file.txt after each command to add the output to file.txt.
You can also stick the redirection in front of the command.
You can also use parentheses if you don't want to type so much.
Code: Select all
ping google.com >>file.txt
tracert google.com >>file.txt
Code: Select all
>>file.txt ping google.com
>>file.txt tracert google.com
Code: Select all
>>file.txt (
ping google.com
tracert google.com
)
Re: Batch to create an ping and tracert log
Got it, I'l try it.
Thx bro ^^
Thx bro ^^