home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / UTILS2 / X10XA2.ZIP / AUTOEXC.BAT next >
DOS Batch File  |  1994-01-15  |  2KB  |  46 lines

  1. @ECHO OFF
  2. REM --------------------------------------------------------------------
  3. REM This is an excerpt from my AUTOEXEC.BAT file. Use these sample
  4. REM statements to configure your system to use XA.
  5. REM 
  6. REM Set your PATH to include the directory where XA is kept.
  7. REM --------------------------------------------------------------------
  8.  
  9. PATH C:\X10;(...other directories placed here...)
  10.  
  11. REM --------------------------------------------------------------------
  12. REM Setup the XA Environment variable to point to the directory where
  13. REM XA's command and initialization files are kept.
  14. REM --------------------------------------------------------------------
  15.  
  16. SET XA=C:\X10
  17.  
  18. REM --------------------------------------------------------------------
  19. REM You could synchronize the clock in your CP-290 every time you boot
  20. REM your PC.
  21. REM --------------------------------------------------------------------
  22.  
  23. XA "SYNCHRONIZE X10"
  24.  
  25. REM --------------------------------------------------------------------
  26. REM Use POWERUP to see if it's time to update the CP-290 (Sunday 3:00am)
  27. REM ... Then DEFRAG DRIVES C,D,E,F
  28. REM ...... Then BACKUP modified files on drive E.
  29. REM ......... Then turn off the PC. 
  30. REM --------------------------------------------------------------------
  31. POWERUP D=SUNDAY s=2:55 e=3:05
  32. IF ERRORLEVEL == 1 GOTO SET_CP290
  33. GOTO FINISH
  34. :SET_CP290
  35. XA f=xa.cmd +r1
  36. C:\DOS\DEFRAG C: /F
  37. C:\DOS\DEFRAG D: /F
  38. C:\DOS\DEFRAG E: /F
  39. C:\DOS\DEFRAG F: /F
  40. C:\UTILS\BACKUP E:
  41. C:\DOS\smartdrv /c C- D- E- 1024 512
  42. XA "P_C OFF"
  43.  
  44.  
  45. :FINISH
  46.