Well, I couldn't get it to work completely using the original code you posted.

I changed it to this, and it worked fine.

Code:
alias wping {
  run command.com /c ping $1 > ping.txt  
  .timer4p 1 5 loadbuf -s ping.txt
}