home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / cwrtr12.zip / CWDEMO.BAT < prev    next >
DOS Batch File  |  1992-12-22  |  4KB  |  165 lines

  1. @echo off
  2.  
  3. if "%1"=="" goto example
  4. if "%1"=="?" goto example
  5.  
  6. if not exist cwdemo.bat goto chgdir
  7.  
  8. if "%1"=="C:" goto install
  9. if "%1"=="D:" goto install
  10. if "%1"=="E:" goto install
  11. if "%1"=="F:" goto install
  12. if "%1"=="G:" goto install
  13. if "%1"=="H:" goto install
  14. if "%1"=="I:" goto install
  15. if "%1"=="J:" goto install
  16. if "%1"=="K:" goto install
  17. if "%1"=="L:" goto install
  18. if "%1"=="M:" goto install
  19. if "%1"=="N:" goto install
  20. if "%1"=="O:" goto install
  21. if "%1"=="P:" goto install
  22. if "%1"=="Q:" goto install
  23. if "%1"=="R:" goto install
  24. if "%1"=="S:" goto install
  25. if "%1"=="T:" goto install
  26. if "%1"=="U:" goto install
  27. if "%1"=="V:" goto install
  28. if "%1"=="W:" goto install
  29. if "%1"=="X:" goto install
  30. if "%1"=="Y:" goto install
  31. if "%1"=="Z:" goto install
  32. if "%1"=="c:" goto install
  33. if "%1"=="d:" goto install
  34. if "%1"=="e:" goto install
  35. if "%1"=="f:" goto install
  36. if "%1"=="g:" goto install
  37. if "%1"=="h:" goto install
  38. if "%1"=="i:" goto install
  39. if "%1"=="j:" goto install
  40. if "%1"=="k:" goto install
  41. if "%1"=="l:" goto install
  42. if "%1"=="m:" goto install
  43. if "%1"=="n:" goto install
  44. if "%1"=="o:" goto install
  45. if "%1"=="p:" goto install
  46. if "%1"=="q:" goto install
  47. if "%1"=="r:" goto install
  48. if "%1"=="s:" goto install
  49. if "%1"=="t:" goto install
  50. if "%1"=="u:" goto install
  51. if "%1"=="v:" goto install
  52. if "%1"=="w:" goto install
  53. if "%1"=="x:" goto install
  54. if "%1"=="y:" goto install
  55. if "%1"=="z:" goto install
  56.  
  57. goto example
  58. goto end
  59.  
  60. :install
  61. cls
  62. echo.
  63. echo        You have chosen to copy the CADWriter program files to:
  64. echo.
  65. echo           %1\CADWRIT
  66. echo.
  67. echo        Press CTRL+C to Cancel, or any other key to continue...
  68. pause >nul
  69. echo.
  70. echo.
  71.  
  72. if exist %1\CADWRIT\NUL goto direxists
  73. md %1\cadwrit
  74.  
  75. :cont_1
  76. cls
  77. echo.
  78. echo        Copying Files.... Please Wait.
  79. echo.
  80. copy *.* %1\cadwrit
  81. cls
  82. echo                           INSTALLATION COMPLETE
  83. echo                           ---------------------
  84. echo  To use CADWriter:
  85. echo     1) Start AutoCAD R12
  86. echo     2) Use the APPLOAD command in AutoCAD to load the file:
  87. echo           %1\CADWRIT\CADWRIT.EXP
  88. echo     3) Use the WRITE Command to start CADWriter.
  89. echo           Command: WRITE
  90. echo.
  91. echo  The Registration Dialog will then appear. Press the button labeled
  92. echo  'Run in Demo Mode'.  Help is provided for all dialog boxes. Also, while
  93. echo  in Text Entry mode:
  94. echo.
  95. echo     F1          is the Command Menu
  96. echo     ALT+F1      is Keystroke Command Help
  97. echo.
  98. echo  To learn about all of the features available in CADWriter, you can use
  99. echo  the Help Index, or browse through the CADWriter Help topics with the
  100. echo  'Previous' and 'Next' buttons in the Help dialog.
  101. echo.
  102. echo  After you try the CADWriter Demo, you can turn it into a fully funtional
  103. echo  version by following the instructions of the Registration Dialog.
  104. echo.
  105. %1
  106. cd \cadwrit
  107. goto end
  108.  
  109. :chgdir
  110. cls
  111. echo.
  112. echo        Error: Can not find CADWriter files.
  113. echo.
  114. echo        Please change to the floppy drive that contains the 
  115. echo        CADWriter Demo disk, then restart the command by typing:
  116. echo.
  117. echo           CWDEMO {drive}:
  118. echo.
  119. echo        where {drive} is the name of the Hard Drive that you wish
  120. echo        to place the CADWriter Demo.  For instance:
  121. echo.
  122. echo           CWDEMO C:
  123. echo.
  124. echo        will create and place the CADWriter files in the C:\CADWRIT
  125. echo        directory.
  126. echo.
  127. goto end
  128.  
  129. :cont_2
  130.  
  131. goto end
  132.  
  133. :direxists
  134. cls
  135. echo.
  136. echo        The directory [ %1\CADWRIT ] already exists.
  137. echo.
  138. echo        Press CTRL+C to Cancel, or any other key to continue...
  139. echo.
  140. pause >nul
  141. goto cont_1
  142.  
  143.  
  144. :example
  145. cls
  146. echo.
  147. echo        Please use the CADWriter CWDEMO installation program as
  148. echo        follows:
  149. echo.
  150. echo           CWDEMO {drive}:
  151. echo.
  152. echo        where {drive} is the name of the Hard Drive that you wish
  153. echo        to place the CADWriter Demo.  For instance:
  154. echo.
  155. echo           CWDEMO C:
  156. echo.
  157. echo        will create and place the CADWriter files in the C:\CADWRIT
  158. echo        directory.
  159. echo.
  160. echo.
  161. goto end
  162.  
  163. :end
  164.  
  165.