I'm guessing you get errors because of folder path issues.
I'm guessing you are saving these commands as a BAT file and running the BAT file.
One way you might fix this is adding a CD (Change Directory) command to the BAT file.
I added the cd C:\Users\DavidE\ to my BAT file and this works for me. You will need to change DavidE to YOUR USERID for this cd command. Here is my BAT file:
%echo KHC_Office_Manager > "Desktop\Ping today.txt"
Ping 10.192.172.12 >> "Desktop\Ping today.txt"
%echo KHC_Office_Buying >> "Desktop\Ping today.txt"
Ping 10.192.172.11 >> "Desktop\Ping today.txt"
If you do have problems post a screen print of the CMD window showing the errors. Screenshots and Files - Upload and Post in Seven Forums
Here is a screen print of what i see when i run the BAT file...