home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / 100UTILI / EXCEL2.ZIP / SETUP.BAT < prev    next >
DOS Batch File  |  1988-12-29  |  3KB  |  150 lines

  1. echo off
  2. rem Setup file for the Microsoft(r) Excel Promotional Edition
  3. rem (c) December 29, 1988 Microsoft Corporation 
  4. rem All Rights Reserved
  5. cls
  6. echo                   Microsoft Excel Promotional Edition SETUP
  7. echo  
  8. echo This batch file will setup the Promotional Edition of Microsoft Excel
  9. echo into a subdirectory called XLDEMO on your hard disk.
  10. echo  
  11. echo If your hard disk is designated by a letter other than C:, then exit
  12. echo this batch file by pressing Control+C, then restart SETUP and specify
  13. echo the letter of your hard disk as an argument.  For example, if your 
  14. echo hard disk is drive D:, then invoke setup by typing: SETUP D:
  15. echo  
  16. echo If your floppy drive is designated by a letter other than A:, you can
  17. echo specify a second argument to SETUP which indicates the correct drive
  18. echo letter.  For example, if your hard disk is C: and your floppy drive is
  19. echo B:, invoke SETUP by typing SETUP C: B:.
  20. echo  
  21.  
  22. if .%1 == . goto cont0
  23. echo If you continue, SETUP will assume %1 is your hard disk.
  24. if .%2 == . goto cont1
  25. echo If you continue, SETUP will assume %2 is your floppy drive.
  26. echo  
  27. pause
  28. %2
  29. goto main
  30.  
  31. :cont1
  32. echo If you continue, SETUP will assume A: is your floppy drive.
  33. echo  
  34. pause
  35. A:
  36. goto main
  37.  
  38. :cont0
  39. echo If you continue, SETUP will assume C: is your hard disk.
  40. echo If you continue, SETUP will assume A: is your floppy drive.
  41. echo  
  42. pause
  43. A:
  44.  
  45. :main
  46. echo  
  47. echo Before SETUP copies files, please specify the type of printer you have.
  48. echo It's assumed the printer is connected to LPT1:.
  49. ync /c he "Type h for HP LaserJet printer or e for Epson FX printer."
  50.  
  51. if errorlevel 1 goto epson
  52. if .%1 == . goto default1
  53. cls
  54. echo  
  55. echo SETUP is now copying files to %1\XLDEMO.
  56. echo  
  57. mkdir %1\XLDEMO
  58. copy *.* %1\XLDEMO
  59. cls
  60. echo  
  61. echo SETUP now needs the second disk.  Please insert Disk 2 in floppy drive.
  62. echo  
  63. pause
  64. echo  
  65. echo SETUP is now copying files to %1:\XLDEMO.
  66. echo  
  67. copy *.* %1\XLDEMO
  68. del %1\XLDEMO\setup.bat
  69. del %1\XLDEMO\ync.exe
  70. %1
  71. cd \XLDEMO
  72. goto done
  73.  
  74. :default1
  75. cls
  76. echo  
  77. echo SETUP is now copying files to C:\XLDEMO.
  78. echo  
  79. mkdir c:\XLDEMO
  80. copy *.* c:\XLDEMO
  81. cls
  82. echo  
  83. echo SETUP now needs the second disk.  Please insert Disk 2 in floppy drive.
  84. echo  
  85. pause
  86. echo  
  87. echo SETUP is now copying files to C:\XLDEMO.
  88. echo  
  89. copy *.* c:\XLDEMO
  90. del c:\XLDEMO\setup.bat
  91. del c:\XLDEMO\ync.exe
  92. c:
  93. cd \XLDEMO
  94. goto done
  95.  
  96. :epson
  97. if .%1 == . goto default2
  98. cls
  99. echo  
  100. echo SETUP is now copying files to %1\XLDEMO.
  101. echo  
  102. mkdir %1\XLDEMO
  103. copy *.* %1\XLDEMO
  104. cls
  105. echo  
  106. echo SETUP now needs the second disk.  Please insert Disk 2 in floppy drive.
  107. echo  
  108. pause
  109. echo  
  110. echo SETUP is now copying files to %1\XLDEMO.
  111. echo  
  112. copy *.* %1\XLDEMO
  113. del %1\XLDEMO\setup.bat
  114. del %1\XLDEMO\ync.exe
  115. %1
  116. cd \XLDEMO
  117. ren win.ini hppcl.ini
  118. ren epson9.ini win.ini
  119. goto done
  120.  
  121. :default2
  122. cls
  123. echo  
  124. echo SETUP is now copying files to C:\XLDEMO.
  125. echo  
  126. mkdir c:\XLDEMO
  127. copy *.* c:\XLDEMO
  128. cls
  129. echo  
  130. echo SETUP now needs the second disk.  Please insert Disk 2 in floppy drive.
  131. echo  
  132. pause
  133. echo  
  134. echo SETUP is now copying files to C:\XLDEMO.
  135. echo  
  136. copy *.* c:\XLDEMO
  137. del c:\XLDEMO\setup.bat
  138. del c:\XLDEMO\ync.exe
  139. c:
  140. cd \XLDEMO
  141. ren win.ini hppcl.ini
  142. ren epson9.ini win.ini
  143.  
  144. :Done
  145. cls
  146. echo  
  147. echo The Promotional Edition of Microsoft Excel is now installed.  
  148. echo To start Microsoft Excel, type EXCEL and press the Enter key.
  149. echo  
  150.