home *** CD-ROM | disk | FTP | other *** search
/ Boldly Go Collection / version40.iso / TS / 25D / SETCLOCK.ZIP / AUTOSET.BAT next >
Encoding:
DOS Batch File  |  1990-10-31  |  1.1 KB  |  49 lines

  1. @echo off
  2. rem   Heath GC-1000 Most Accurate Clock
  3. rem   Interface Software V0.2
  4. rem   Copyright (c)  S.K. Consultants, 1990
  5. echo Heath GC-1000 PC/CLOCK Interface Software attempting to read clock...
  6. setclock %1
  7. if errorlevel 7 goto E7
  8. if errorlevel 6 goto E6
  9. if errorlevel 5 goto E5
  10. if errorlevel 4 goto E4
  11. if errorlevel 3 goto E3
  12. if errorlevel 2 goto E2
  13. if errorlevel 1 goto E1
  14. goto EXIT
  15.  
  16. :E1
  17. echo No response; RS-232 Communications error!
  18. goto EXIT
  19.  
  20. :E2
  21. echo Clock synchronized to WWV time signal and accurate to 10ms.
  22. echo PC's date and time have not been set.
  23. goto EXIT
  24.  
  25. :E3
  26. echo Clock not receiving WWV time signal - not guaranteed to be accurate.
  27. echo PC's date and time have not been set.
  28. goto EXIT
  29.  
  30. :E4
  31. echo Clock has not yet received WWV time signal!
  32. goto EXIT
  33.  
  34. :E5
  35. echo Failure to read configuration file!
  36. goto EXIT
  37.  
  38. :E6
  39. echo Clock synchronized to WWV time signal and accurate to 10ms.
  40. echo PC's date and time have been set!
  41. goto EXIT
  42.  
  43. :E7
  44. echo Clock not receiving WWV time signal - not guaranteed to be accurate.
  45. echo PC's date and time have been set!
  46. goto EXIT
  47.  
  48. :EXIT
  49.