home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / WW4SHARE / WWIV430.ZIP / UPGRADE.BAT < prev    next >
DOS Batch File  |  2000-03-06  |  5KB  |  175 lines

  1. @ECHO OFF
  2. REM  Commandline must include the MAIN BBS destination directory for the
  3. REM  upgrade with *NO* trailing slash i.e. D:\WWIV
  4.  
  5. CLS
  6. ECHO.
  7. ECHO.
  8. ECHO                      WWIV v4.30 Upgrade Batch
  9. ECHO.
  10.  
  11. if %1a == a goto HELP
  12.  
  13. ECHO    IT IS HIGHLY RECOMMENDED THAT YOU MAKE A COMPLETE BACKUP OF YOUR
  14. ECHO          DATA PRIOR TO INSTALLING AND RUNNNING THIS SOFTWARE.
  15. ECHO.
  16. ECHO  WWIV SOFTWARE SERVICES, LLC DISCLAIMS ANY AND ALL RESPONSIBILITY AND
  17. ECHO  LIABILITY FOR ANY HARDWARE OR SOFTWARE DAMAGE, CORRUPTION OR LOSS OF
  18. ECHO             DATA AS A RESULT OF YOUR USE OF THIS SOFTWARE.
  19. ECHO.
  20. ECHO.
  21. choice /C:YN /N /T:N,60 Continue?  [Y,N] :
  22. if errorlevel == 2 goto END
  23.  
  24. rem ******************************* display license agreement
  25. cls
  26. type license.agr | more
  27. ECHO.
  28. ECHO.
  29. ECHO.
  30. rem ******************************* run INIT to convert data files to
  31. rem ******************************* v4.30 format
  32. choice /C:YN /N /T:N,30 Do you Agree?  [Y,N] :
  33. if errorlevel == 2 goto END
  34.  
  35. CLS
  36. ECHO.
  37. ECHO.
  38. ECHO                      WWIV v4.30 Upgrade Batch
  39. ECHO.
  40. ECHO  If your system does not use a standard WWIV directory tree, you
  41. ECHO  must edit this file prior to upgrading to account for directories
  42. ECHO  or files that are in non-standard locations.
  43. ECHO.
  44. ECHO  You must manually merge the changes from WWIVINI.430 with your
  45. ECHO  WWIV.INI file.  Settings in your current file that are not in the
  46. ECHO  new file should be removed.  They will be ignored in any case, but
  47. ECHO  will increase read times if not removed.
  48. ECHO.
  49. ECHO                  ***WARNING***WARNING***WARNING***
  50. ECHO.
  51. ECHO  Running the BBS prior to running INIT to convert the data files
  52. ECHO  will corrupt the files making it impossible to convert them.  Make
  53. ECHO  sure you have a current backup!  If you included a trailing
  54. ECHO  backslash on your install directory, this upgrade will fail!!
  55. ECHO.
  56. choice /C:YN /N /T:N,40 Upgrade to WWIV v4.30 now?  [Y,N] :
  57. if errorlevel == 2 goto END
  58.  
  59. :UPGRADE
  60. ECHO Upgrading to WWIV v4.30...  Please wait....
  61. ECHO.
  62. ECHO.
  63. REM ******************************* Change the attributes if set
  64. ECHO Changing file attributes if set...
  65. attrib -r %1\init.exe
  66. attrib -r %1\bbs.exe
  67. attrib -r %1\fix.exe
  68. attrib -r %1\return.exe
  69.  
  70. REM ******************************* copy EXE's
  71. ECHO Copying EXE's...
  72. copy init.exe %1
  73. copy bbs.exe %1
  74. attrib +r %1\bbs.exe
  75. copy fix.exe %1
  76. copy return.exe %1
  77. copy stredit.exe %1
  78.  
  79. REM ******************************* copy STR files
  80. ECHO Copying String files...
  81. copy english.str %1\gfiles\bbs.str
  82. copy sysoplog.str %1\gfiles\sysoplog.str
  83. copy chat.str %1\gfiles\chat.str
  84. copy ini.str %1\gfiles\ini.str
  85. copy yes.str %1\gfiles\yes.str
  86. copy no.str %1\gfiles\no.str
  87.  
  88. REM ******************************* copy INI's and text files
  89. ECHO Copying INI, data, and text files...
  90. copy chat.ini %1
  91. copy wwivini.430 %1
  92. copy bbsads.txt %1
  93. copy revision.txt %1
  94. copy readme.430 %1
  95. copy menu.doc %1
  96. copy *.sam %1
  97. copy modems.430 %1\DATA
  98. copy menucmds.dat %1\DATA
  99. copy regions.dat %1\DATA
  100. copy wfc.dat %1\DATA
  101.  
  102. REM ******************************* unzip menus regions and zip code files
  103. ECHO Decompressing archives. Please wait....
  104. if %TZ%a == a goto DOTZ
  105. unzip -qq -o en-menus.zip -d%1\gfiles
  106. unzip -qq -o regions.zip -d%1\data
  107. unzip -qq -o zip-city.zip -d%1\data
  108. goto TZEND
  109. :DOTZ
  110. SET TZ=EST5EDT
  111. unzip -qq -o en-menus.zip -d%1\gfiles
  112. unzip -qq -o regions.zip -d%1\data
  113. unzip -qq -o zip-city.zip -d%1\data
  114. SET TZ=
  115. :TZEND
  116.  
  117. REM ******************************* run INIT to convert data files to
  118. REM ******************************* v4.30 format
  119. CLS
  120. cd %1
  121. type license.agr | more
  122. ECHO.
  123. ECHO.
  124. ECHO You must now run INIT to convert your data files to v4.30 format.
  125. ECHO.
  126. ECHO.
  127. ECHO.
  128. choice /C:YN /N /T:N,40 Run INIT ,1 now?  [Y,N] :
  129. if errorlevel == 2 goto END
  130. cd %1
  131. init ,1
  132. goto CLOSE
  133.  
  134. REM Display Help
  135. :HELP
  136. ECHO.
  137. ECHO.
  138. ECHO Commandline must include destination directory!
  139. ECHO.
  140. ECHO DO NOT include a trailing backslash!
  141. ECHO.
  142. ECHO.
  143. ECHO  i.e.  UPGRADE.BAT D:\WWIV
  144. goto END
  145.  
  146. REM Exit Batch file
  147. :CLOSE
  148. CLS
  149. ECHO.
  150. ECHO.
  151. ECHO                      WWIV v4.30 Upgrade Batch
  152. ECHO.
  153. ECHO If INIT.EXE faile to run, you will need to run it manually to complete
  154. ECHO the upgrade process.  Be forewarened that if INIT.EXE is not run once
  155. ECHO prior to running the BBS, your data files will be permanently
  156. ECHO corrupted.  It would be wise to run INIT.EXE again now just to be
  157. ECHO sure.
  158. ECHO.
  159. ECHO You will then need to manually merge WWIVINI.430 with your current
  160. ECHO WWIV.INI file.  This is also imperative as some new settings must be
  161. ECHO included for v4.30 to run.  Be sure to read the comments thoroughly.
  162. ECHO They should be more than sufficient to get you up and running for the
  163. ECHO first time.  Consult the documentation for advanced settings.
  164. ECHO.
  165. ECHO The new file, MODEMS.430, has been copied to your DATA directory.
  166. ECHO If your current modem setup is working, you should continue to use it.
  167. ECHO There are some new definitions in this file that are specialized for
  168. ECHO telnet use with COM/IP or NetModem32.
  169. ECHO.
  170. ECHO You must ensure that your fossil driver is loaded prior to running
  171. ECHO the BBS.  Examples of known working commands are in WWIVBAT.SAM.
  172.  
  173. :END
  174. ECHO.
  175.