home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / wp / ltrwin21.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1992-12-12  |  3KB  |  79 lines

  1. @REM SETUP.BAT; Letterhead Kit/Windows 2.1
  2. @REM Copyright 1992 Jerry Stern--All Rights Reserved, 12/92
  3. @echo off
  4. cls
  5. if not exist ltrwin21.doc goto baddir
  6. if not exist letter-w.frm goto baddir
  7. if not exist letter.wcm goto baddir
  8. if "%1"=="" goto info
  9. if "%2"=="" goto info
  10. if not exist %2\*.* goto nomac
  11. if not exist %1\*.* goto new
  12. ECHO Upgrade Installation to version 2.1
  13. ECHO Your old letterheads will not be replaced.
  14. goto more
  15. :new
  16. ECHO New Installation of version 2.1
  17. :more
  18. ECHO ...
  19. ECHO Files for THE LETTERHEAD KIT 2.1 for WP/Windows will now be copied:
  20. ECHO Macros and the button bar will be copied to %2
  21. ECHO A complete set of all the forms, macros, samples, instructions,
  22. ECHO and graphics will be copied to the directory %1
  23. ECHO You will need about 360K of free space for now, and the manual
  24. ECHO will tell you which files are absolutely needed (about 110K).
  25. ECHO ...
  26. ECHO Press any key to proceed with installation, or Control-C to stop now.
  27. pause > nul
  28. echo %1 >%2\ltrhead.cfg
  29. copy *.wcm %2
  30. copy *.wwb %2
  31. if not exist %1\*.* goto newset
  32. ren %1\*.frm *.old
  33. copy *.* %1\*.*
  34. if exist %1\bill.old del %1\bill.frm
  35. if exist %1\fax.old del %1\fax.frm
  36. if exist %1\letter-w.old del %1\letter-w.frm
  37. ren %1\*.old *.frm
  38. goto done
  39. :newset
  40. md %1
  41. copy *.* %1\*.*
  42. :done
  43. ECHO Done...
  44. ECHO If you haven't already,
  45. ECHO run PRINTMAN.BAT for instructions on printing the manual.
  46. goto end
  47. :nomac
  48. ECHO Letterhead Kit/Windows 2.1 Installation
  49. ECHO The directory that you have chosen to copy the macros and button 
  50. ECHO bar to is empty or doesn't exist. Please check the name,
  51. ECHO and try again.
  52. goto end
  53. :baddir
  54. ECHO Letterhead Kit/Windows 2.1 Installation
  55. ECHO You must start this installation by logging to the drive and directory
  56. ECHO where the files are currently located. When you run SETUP from that
  57. ECHO directory, it will help you find the correct startup command to
  58. ECHO install your software.
  59. goto end
  60. :info
  61. ECHO Letterhead Kit/Windows 2.1 Installation
  62. ECHO Start SETUP.BAT with the new directory name to make for
  63. ECHO storing The Letterhead Kit forms and graphics, and the name
  64. ECHO of the macro directory used by WordPerfect, usually
  65. ECHO c:\wpwin\macros or c:\wpwin.
  66. ECHO ...
  67. ECHO If you don't know where WP/WIN keeps your macros,
  68. ECHO choose File, Preferences, Location of Files, and write
  69. ECHO down the entry under "Macros/Keyboards/Button Bars" and
  70. ECHO enter it from the DOS prompt. (Press Escape to return to
  71. ECHO the document screen.)
  72. ECHO ...
  73. ECHO For example: 
  74. ECHO SETUP c:\ltrhead c:\wpwin\macros
  75. ECHO (Copies package to c:\ltrhead, using c:\wpwin\macros for macros.)
  76. ECHO SETUP d:\ltrhead d:\wpwin
  77. ECHO (Copies package to d:\ltrhead, using d:\wpwin for macros.)
  78. :end
  79. PAUSE