home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / capgnz32.zip / CGZCP32.EXE / CGRESYNC.BAT < prev    next >
DOS Batch File  |  1994-05-27  |  1KB  |  28 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. ECHO Hit any key to resync data/index files (Ctrl-C to abort)
  21. PAUSE > NUL
  22. REM Save password file - it's not rebuilt.
  23. COPY PASSWD.K01 PASSWD.SAV
  24. DEL *.K01
  25. COPY PASSWD.SAV PASSWD.K01
  26. ECHO                    Resynchronization Complete!
  27. ECHO Execute Capital Gainz to rebuild the index files.
  28.