This uses a helper batch file called repl.bat
- download from: https://www.dropbox.com/s/qidqwztmetbvklt/repl.bat
Place repl.bat
in the same folder as the batch file or in a folder that is on the path.
@echo off
set ip=www.google.com
ping %ip% -t |repl ".*?=.*?=([0-9]*).*TTL=.*" "$1" A >>textfile.txt