home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ida35bo.zip / IDACHECK.CMD < prev    next >
OS/2 REXX Batch file  |  1996-01-29  |  719b  |  34 lines

  1. @echo off
  2. rem
  3. rem    This command file repairs IDA database.
  4. rem
  5. rem    Usually it will be run from IDA automatically.
  6. rem    To run it manually:
  7. rem        - run IDA and exit with "Don't pack database"
  8. rem        - run this command file on the *.ID0 file
  9. rem          for example: IDACHECK MYBASE.ID0
  10. rem        - if you don't want to keep the database in the
  11. rem          unpacked form, run IDA and exit with "Pack..." 
  12. rem
  13. cls
  14. if %1. == . goto Usage
  15. btv2 -c %1
  16. btv2 %1 idachk.tmp
  17. if errorlevel 1 goto Error
  18. del %1
  19. rename idachk.tmp %1
  20. idacomp %1
  21. goto Ex
  22. :Usage
  23. echo .
  24. echo .  Usage: idacheck filename
  25. echo .         where filename is *.id0 file
  26. echo .
  27. goto Ex
  28. :Error
  29. echo .
  30. echo .    Error during validation
  31. echo .
  32. pause
  33. :Ex
  34.