home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / ovladace / 3com / 3c90xn / 3c90xn.exe / DISK1 / MSUPDATE / EMM386UP.BAT < prev    next >
DOS Batch File  |  1994-12-08  |  4KB  |  109 lines

  1. @echo off
  2. rem ------------------------------
  3. rem 
  4. rem Updates the MS-DOS 6.x binary
  5. rem specified by F_NAME 
  6. rem to MS-DOS 6.22
  7. rem 
  8. rem ------------------------------
  9.  
  10. if not exist .\MSUPDATE.EXE goto starterr
  11.  
  12. set F_NAME=EMM386
  13. set F_EXT=EXE
  14.  
  15. if "%1"=="" goto noargs
  16.  
  17. rem An argument was given...
  18. if not exist %1\%F_NAME%.%F_EXT% goto help
  19. set EMM386LOC=%1\%F_NAME%.%F_EXT%
  20. goto prepatch
  21.  
  22. :noargs
  23. if not exist C:\DOS\%F_NAME%.%F_EXT% goto noargs2
  24. rem Found C:\DOS\%F_NAME%.%F_EXT%
  25. set EMM386LOC=C:\DOS\%F_NAME%.%F_EXT%
  26. goto prepatch
  27.  
  28. :noargs2
  29. if not exist C:\MSDOS\%F_NAME%.%F_EXT% goto help
  30. rem Found C:\MSDOS\%F_NAME%.%F_EXT%
  31. set EMM386LOC=C:\MSDOS\%F_NAME%.%F_EXT%
  32.  
  33. :prepatch
  34. cls
  35. echo.
  36. echo %0 uses the MSUPDATE.EXE program to update your copy of 
  37. echo the %F_NAME%.%F_EXT% file to MS-DOS 6.22.
  38. echo.
  39. echo NOTICE: By installing and using the SOFTWARE you are agreeing to be 
  40. echo         bound by the terms of this Agreement. If you do not agree 
  41. echo         to the terms of this Agreement, promptly delete the SOFTWARE 
  42. echo         from your computer.
  43. echo.
  44. echo This Agreement permits you to make and use copies of the MSUPDATE 
  45. echo software program (the "SOFTWARE") provided that each such copy 
  46. echo is used only on a single computer which contains a licensed copy 
  47. echo of the Microsoft(R) MS-DOS(R) 6.0 or higher operating system which 
  48. echo has been validly licensed by you. You must maintain all copyright 
  49. echo notices on all copies of the SOFTWARE. You may not rent or lease 
  50. echo the SOFTWARE, but you may transfer the SOFTWARE on a permanent basis 
  51. echo provided you retain no copies, include the most recent update and all 
  52. echo prior versions of the SOFTWARE, and the recipient agrees to the terms of 
  53. echo this Agreement. You may not reverse engineer, decompile, or disassemble 
  54. echo the SOFTWARE. 
  55. echo.
  56. pause
  57. echo.
  58. echo.
  59. echo.
  60. echo THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. 
  61. echo MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, 
  62. echo INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY 
  63. echo AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT OR 
  64. echo ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT 
  65. echo LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, 
  66. echo LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OUT 
  67. echo OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF MICROSOFT HAS 
  68. echo BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME STATES 
  69. echo DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL 
  70. echo OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU. 
  71. echo The SOFTWARE is provided with RESTRICTED RIGHTS. Use, duplication, 
  72. echo or disclosure by the Government is subject to restrictions as set 
  73. echo forth in subparagraph (c)(1)(ii) of The Rights in Technical Data and 
  74. echo Computer Software clause at DFARS 252.227-7013 or subparagraphs (c)(1) 
  75. echo and (2) of the Commercial Computer Software-Restricted Rights 
  76. echo at 48 CFR 52.227-19, as applicable.  Manufacturer is Microsoft 
  77. echo Corporation/One Microsoft Way/Redmond, WA  98052-6399. This 
  78. echo Agreement is governed by the laws of the State of Washington.
  79. echo.
  80. echo.
  81. CHOICE "Do you agree to abide by the terms of this agreement "
  82. if errorlevel 2 goto end
  83. if errorlevel 1 goto patch
  84. echo Do you agree to abide by the terms of this agreement?
  85. echo.
  86. echo If not, press Ctrl+C to quit. Otherwise,
  87. pause
  88.  
  89. :patch
  90. CLS
  91. MSUPDATE %EMM386LOC%
  92. set EMM386LOC=
  93. goto end
  94.  
  95. :help
  96. MSUPDATE /?
  97. goto end
  98.  
  99. :starterr
  100. echo.
  101. echo To run %0, you must start it from the drive and 
  102. echo directory that contains the MSUPDATE.EXE program.
  103. echo.
  104. goto end
  105.  
  106. :end
  107. set F_NAME=
  108. set F_EXT=
  109.