home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m271_3 / 1.ddi / HJ1.ZIP / MAKEIMG.BAT < prev    next >
Encoding:
DOS Batch File  |  1988-03-01  |  2.6 KB  |  61 lines

  1. echo off
  2. if s==%3s goto HELP
  3. cls
  4. echo ╔═════════════════════════════════════════════════════════════╗
  5. echo ║                   MAKEIMG                                   ║
  6. echo ║                                                             ║
  7. echo ║   Automatic Processing of INSET PIX file to Resized and     ║
  8. echo ║   Grayscaled B&W GEM .IMG file                              ║
  9. echo ╚═════════════════════════════════════════════════════════════╝
  10. if not exist %1.pix goto ERR_FIND
  11. echo [%1]
  12. autoin odljet;b1miei%2;0;%3;^^^
  13. if errorlevel 1 goto IN_ERROR
  14. echo Gray/Size Processing ...
  15. autoin omf%1.hpc;pgos^^^
  16. echo Now converting to IMG
  17. convert %1.hpc *.IMG
  18. if errorlevel 1 goto ERR_CVT
  19. del %1.hpc
  20. dir %1.IMG
  21. goto END
  22. :IN_ERROR
  23. echo MAKEIMG processing Error!
  24. echo InSet not loaded
  25. goto END
  26. :ERR_CVT
  27. echo MAKEIMG processing Error!
  28. echo Possible problems:
  29. echo    GNT file not set to ASCII in InSet SETUP.COM
  30. echo    LJET.PRD file not in InSet directory
  31. echo    Path Name to file not used (or InSet PIX directory not NONE)
  32. echo    insufficient disk space
  33. pause
  34. goto  Help
  35. :ERR_FIND
  36. Echo Can't find %1.PIX
  37. :HELP
  38. echo ╔═════════════════════════════════════════════════════════════╗
  39. echo ║                   MAKEIMG                                   ║
  40. echo ║   Automatic Processing of INSET PIX file to Resized and     ║
  41. echo ║   Grayscaled B&W GEM .IMG file                              ║
  42. echo ║                                                             ║
  43. echo ║   MAKEIMG infile width height                               ║
  44. echo ║          infile = Path and Name of inset PIX file           ║
  45. echo ║          width  = Desired width of output image (300dpi)    ║
  46. echo ║          height = Desired height of output image (300dpi)   ║
  47. echo ║   Example:                                                  ║
  48. echo ║          To Convert C:\TEST.PIX to a grayscaled IMG file    ║
  49. echo ║          for inclusion into a 5 inch wide by 3 inch tall    ║
  50. echo ║          Ventura frame                                      ║
  51. echo ║                                                             ║
  52. echo ║    MAKEIMG c:\TEST 5 3                                      ║
  53. echo ║    Requirements:                                            ║
  54. echo ║        o InSet must be loaded in memory with the GNT file   ║
  55. echo ║          set to ASCII in SETUP.COM and the LJET.PRD file    ║
  56. echo ║          in the InSet directory                             ║
  57. echo ║        o AUTOIN.COM and CONVERT.EXE must be in the directory║
  58. echo ║          or path when you run MAKEIMG                       ║
  59. echo ╚═════════════════════════════════════════════════════════════╝
  60. :END
  61.