home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BUSINESS / VNDNFO10.ZIP / EXAMPLES.ZIP / REQUEST.BAT < prev    next >
DOS Batch File  |  1993-11-19  |  3KB  |  70 lines

  1. echo off
  2. cls
  3. goto start
  4. :usage
  5. echo .=================================================================
  6. echo .===== request.bat -- prepare request for distribution       =====
  7. echo .=====                permission, using Ventura Publisher,   =====
  8. echo .=====                company letterhead                     =====
  9. echo .=====                                                       =====
  10. echo .===== usage:                                                =====
  11. echo .=====        request vendinfo_file                          =====
  12. echo .=====                                                       =====
  13. echo .===== where:                                                =====
  14. echo .=====        vendinfo_file is the filename of a             =====
  15. echo .=====        VENDINFO.DIZ file from the product package.    =====
  16. echo .=====                                                       =====
  17. echo .===== example:                                              =====
  18. echo .=====    request vendinfo.diz                               =====
  19. echo .=====                                                       =====
  20. echo .=== Copyright 1993 Rams' Island Software All Rights Reserved ====
  21. echo .== 1993 Rams' Island Software, 7644 Lakecliff, Parker CO 80134 ==
  22. echo .=================================================================
  23. goto done
  24.  
  25. rem ----- check arguments -------------------------------------------
  26. :start
  27. if %1. == .        goto usage
  28.  
  29. :argsOK
  30. rem ----- need ability to produce today's date HERE -----------------
  31.  
  32. rem ----- output address of product's author ------------------------
  33. vendprcs %1 -ean
  34. if errorlevel 51 goto use_company
  35.  
  36. vendprcs %1 -xan -y "@@AUTHOR = @"             > letter.txt
  37. goto addressee_done
  38.  
  39. :use_company
  40. vendprcs %1 -xac -y "@@AUTHOR = @"             > letter.txt
  41.  
  42. :addressee_done
  43. vendprcs -y " "                               >> letter.txt
  44. vendprcs %1 -xaa -y "@@ADDRESS = @" -zv       >> letter.txt
  45. vendprcs -y " "                               >> letter.txt
  46.  
  47. echo Dear Author:                             >> letter.txt
  48. vendprcs -y " "                               >> letter.txt
  49.  
  50. echo We have recently received a copy of your >> letter.txt
  51. vendprcs %1 -xpp -y "<B>@ " -zn               >> letter.txt
  52. vendprcs %1 -xpe           -zn                >> letter.txt
  53. vendprcs %1 -xpv -y " v@<D>."                 >> letter.txt
  54. vendprcs -y " "                               >> letter.txt
  55.  
  56. echo We are quite interested in adding this program to our >> letter.txt
  57. echo inventory, but we observe that you require written    >> letter.txt
  58. echo permission for such distribution.                     >> letter.txt
  59. vendprcs -y " "                               >> letter.txt
  60.  
  61. echo This letter will serve to introduce you to our business, >> letter.txt
  62. echo and...                                   >> letter.txt
  63. vendprcs -y " "                               >> letter.txt
  64.  
  65. echo @CLOSING = Yours truly,                  >> letter.txt
  66. vendprcs -y " "                               >> letter.txt
  67. vendprcs -y "@SIGNATURE = Ima D. Vendor"      >> letter.txt
  68.  
  69. :done
  70.