home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / q / q-modem.zip / ZAP431.BAT < prev   
DOS Batch File  |  1991-09-14  |  2KB  |  80 lines

  1. @Echo Off
  2. REM  Check to make sure the correct files are here
  3. Echo Checking for necessary files...
  4. If not Exist QM43.ZIP     goto WrongDir
  5. If not Exist QM43#1.ZIP   goto WrongDir
  6. If not Exist QM43#2.ZIP   goto WrongDir
  7. If not Exist QM43#3.ZIP   goto WrongDir
  8. If not Exist QM43#4.ZIP   goto WrongDir
  9. If not Exist QM42to43.ZIP goto WrongDir
  10. If not Exist Q43to431.ZIP goto NoUpgradeZip
  11.  
  12. Echo Create the work directory
  13. Md QWORKQ
  14.  
  15. Echo Unzipping master file to the work directory
  16. PKUnZip  Q43TO431 QWORKQ > nul
  17.  
  18. Echo Updating Disk #1
  19. PKZIP -f QM43#1 QWORKQ\*.* > nul
  20. PKZIP -d QM43#1 *.43 > nul
  21. PKZIP -a qm43#1 qworkq\*.431 > nul
  22.  
  23. Echo Updating Disk #2
  24. PKZIP -f QM43#2 QWORKQ\*.* > nul
  25.  
  26. Echo Updating Disk #3
  27. PKZIP -f QM43#3 QWORKQ\*.* > nul
  28. PKZIP -a QM43#3 QWORKQ\v*.* QWORKQ\QMFONCNV.EXE QWORKQ\*.DVP  > nul
  29.  
  30. Echo Updating QM42TO43.ZIP
  31. PKZIP -f QM42TO43 QWORKQ\*.* > nul
  32. PKZIP -d QM42TO43 *.43 > nul
  33. PKZIP -a QM42TO43 QWORKQ\*.431 > nul
  34. PKZIP -a QM42TO43 QWORKQ\v*.* QWORKQ\QMFONCNV.EXE QWORKQ\*.DVP  > nul
  35.  
  36. Echo Renaming files
  37. REN QM43#1.ZIP QM431#1.ZIP
  38. REN QM43#2.ZIP QM431#2.ZIP
  39. REN QM43#3.ZIP QM431#3.ZIP
  40. REN QM43#4.ZIP QM431#4.ZIP
  41. REN QM42TO43.ZIP Q42TO431.ZIP
  42.  
  43. Echo Creating QM431.ZIP
  44. DEL QM43.ZIP
  45. PKZIP -a QM431 QM431#1.ZIP QM431#2.ZIP QM431#3.ZIP QM431#4.ZIP > nul
  46.  
  47. Echo Cleaning up Q43TO431.ZIP
  48. PKZIP -d Q43TO431 ZAP431.ZIP README.DIS > nul
  49.  
  50. Echo Deleting files in the work directory, and then the directory.
  51. Echo Y|Del QWORKQ\*.*
  52. Echo Deleting the work directory.
  53. RD QWORKQ
  54. Echo.
  55. Echo File Discriptions
  56. Echo -----------------------------------------------
  57. Echo QM431.ZIP       Complete 4.31 version
  58. Echo QM431#1.ZIP     Disk 1 of 4 Qmodem version 4.31
  59. Echo QM431#2.ZIP     Disk 2 of 4 Qmodem version 4.31
  60. Echo QM431#3.ZIP     Disk 3 of 4 Qmodem version 4.31
  61. Echo QM431#4.ZIP     Disk 4 of 4 Qmodem version 4.31
  62. Echo Q42TO431.ZIP    Upgrade version 4.2 to 4.31
  63. Echo Q43TO431.ZIP    Upgrade version 4.3 to 4.31
  64. Goto DoneOK
  65.  
  66. :WrongDir
  67. Echo.
  68. Echo You are running this Batch file from the wrong directory.  You should
  69. Echo start this from the DIR where you store the Qmodem 4.3 Download files.
  70. Goto Done
  71.  
  72. :NoUpgradeZip
  73. Echo The file Q43TO431.ZIP must also be in this directory to run the ZAP.
  74.  
  75. :DoneOK
  76. Echo.
  77. Echo ZAP Completed!
  78.  
  79. :Done
  80.