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

  1. @echo off
  2. rem
  3. rem    This command file compresses IDA database so that it will occupy
  4. rem    less space on the disk and IDA will work faster.
  5. rem
  6. rem    To use this command file you should:
  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: IDACOMP 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. rem
  14. cls
  15. if %1. == . goto Usage
  16. btc2 %1 idabase.tmp
  17. if errorlevel 1 goto Error
  18. copy idabase.tmp %1
  19. del idabase.tmp
  20. goto Ex
  21. :Usage
  22. echo .
  23. echo .  Usage: idacomp filename
  24. echo .         where filename is *.id0 file
  25. echo .
  26. goto Ex
  27. :Error
  28. echo .
  29. echo .  Compression failed.
  30. echo .
  31. pause
  32. :Ex
  33.