home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a031 / db15_1.ddi / DISK1.ZIP / CACHEDB.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-03-10  |  1.3 KB  |  57 lines

  1. cls
  2. echo off
  3. cls
  4. if not exist dbase.exe goto wrong
  5. if not exist dbase.cac goto wrong
  6.  
  7. if %1x==x goto useage
  8. if %1==off goto off
  9. if %1==OFF goto off
  10. if %1==ext goto extended
  11. if %1==EXT goto extended
  12. if %1==lim goto expanded
  13. if %1==LIM goto expanded
  14. goto useage
  15.  
  16. :off
  17. if not exist dbase1.exe goto OFFDONE
  18. del dbcache.ovl >nul
  19. copy dbase1.exe dbase.exe>nul
  20. del dbase1.exe >nul
  21. :OFFDONE
  22. echo dBASE caching is OFF.
  23. goto out
  24.  
  25. :extended
  26. copy ext.ovl dbcache.ovl >nul
  27. if exist dbase1.exe goto EXTDONE
  28. copy dbase.exe dbase1.exe >nul
  29. copy dbase.cac dbase.exe >nul
  30. :EXTDONE
  31. echo Extended caching for dBASE is ON.
  32. goto out
  33.  
  34. :expanded
  35. copy exp.ovl dbcache.ovl >nul
  36. if exist dbase1.exe goto EXPDONE
  37. copy dbase.exe dbase1.exe >nul
  38. copy dbase.cac dbase.exe >nul
  39. :EXPDONE
  40. echo Expanded caching for dBASE is ON.
  41. goto out
  42.  
  43. :wrong
  44. echo  Please run CACHEDB from your dBASE IV's directory.
  45. echo  dBase IV's caching configuration did not change.
  46. goto out
  47.  
  48. :useage
  49. echo To change your dBASE IV caching configuration ...
  50. echo Type: CACHEDB [TYPE]
  51. echo Possible choices for TYPE are:
  52. echo                      off ........ Turns caching off
  53. echo                      ext ........ Extended caching on
  54. echo                      lim ........ Expanded caching on
  55.  
  56. :out
  57.