From Rick Cogley, 2 Years ago, written in WinBatch.
Embed
  1. @echo off
  2. # Author: Rick Cogley
  3. # Last Update: 1 Nov 2014
  4. echo "== STARTING BATCH =="
  5. echo "Results from %computername%:" > results.txt
  6. echo "Pinging..." >> results.txt
  7. ping -n 4 www.esolia.com >> results.txt
  8. echo. >> results.txt
  9. echo "Running SET..." >> results.txt
  10. set >> results.txt
  11. echo. >> results.txt
  12. echo "PC info..." >> results.txt
  13. echo "Computer: %computername%" >> results.txt
  14. echo "Domain: %computerdomain%" >> results.txt
  15. echo "== ENDING BATCH =="