When using the pipe use >> instead of > as this will append to a file rather than over-write.
ie
time /t >> test.txt
date /t >> test.txt
ping xx.xx.xxx.x >> test.txt
Your output should look something like this
15:17
03/03/2015
Pinging xx.xx.xxx.x with 32 bytes of data:
Reply from...