home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / UTILS2 / X10XA2.ZIP / CHARGER.BAT < prev    next >
DOS Batch File  |  1994-01-15  |  896b  |  28 lines

  1. @ECHO OFF
  2. REM
  3. REM     This batch file shows how to turn ON a battery charger immediately
  4. REM     and program it to turn OFF 14 hours from now...
  5. REM
  6. REM     Assumptions:
  7. REM             1) CP-290 is connected to COM1 (unless modified in XA.INI)
  8. REM             2) Battery charger is addressed at Housecode "C", Unit "5"
  9. REM
  10. REM     The next statement invokes XA with an immediate command to turn the
  11. REM     charger ON:
  12.  
  13. XA "C5 ON"
  14.  
  15. REM
  16. REM     The next statement downloads an event to turn the charger OFF 14 hours
  17. REM     from now. 
  18.  
  19. XA "C5 OFF NOW 14:00"
  20.  
  21. REM
  22. REM     For a faster method of performing these steps, you might want to
  23. REM     create a command file. This way, XA will not have to be "called"
  24. REM     twice from DOS. See CHARGER.CMD for an example. You could then
  25. REM     call it from a batch file as follows (commented out):
  26.  
  27. REM CALL XA F=CHARGER.CMD
  28.