home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR15 / CGZCP32L.ZIP / CGRESYNC.BAT < prev    next >
DOS Batch File  |  1993-03-23  |  1KB  |  27 lines

  1. ECHO OFF
  2. ECHO              Capital Gainz Data/Index Resynchronization
  3. ECHO.
  4. ECHO It's very important to maintain matching Capital Gainz data (*.DAT)
  5. ECHO and index (*.K01) files. This should not be a problem, unless:
  6. ECHO you copy/restore only data or index files; a hard drive failure
  7. ECHO or other application corrupts a data/index file; a disk cache fails.
  8. ECHO Also, if you turn off your PC while Capital Gainz is running, or
  9. ECHO sometimes immediately after you exit, the disk cache may not have
  10. ECHO time to flush its contents to disk. You can usually force the cache
  11. ECHO to be flushed. For instance, use this command with SMARTDRV:
  12. ECHO    SMARTDRV /C
  13. ECHO If index/data files are out-of-sync, you'll see some strange results,
  14. ECHO such as records out of order or records just added not showing up
  15. ECHO in tables. This is only a serious problem if you continue to record
  16. ECHO data. This simple batch file deletes the index files, and they are
  17. ECHO rebuilt from the data files the next time your run Capital Gainz.
  18. ECHO This batch file has no adverse effects.
  19. ECHO.
  20. PAUSE Hit any key to resync data/index files (Ctrl-C to abort)
  21. REM Save password file - it's not rebuilt.
  22. COPY PASSWD.K01 PASSWD.SAV
  23. DEL *.K01
  24. COPY PASSWD.SAV PASSWD.K01
  25. ECHO                    Resynchronization Complete!
  26. ECHO Execute Capital Gainz to rebuild the index files.
  27.