home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / dos_util / nu70up.zip / DOS62UP.BAT next >
DOS Batch File  |  1993-11-02  |  877b  |  33 lines

  1. @echo off
  2. IF EXIST NDOS.COM GOTO OKAY
  3. IF EXIST NDD.EXE GOTO OKAY
  4. IF EXIST RESCUE.EXE GOTO OKAY
  5. IF EXIST SFORMAT.EXE GOTO OKAY
  6.  
  7. echo Can't find NDOS.COM, NDD.EXE, RESCUE.EXE, or SFORMAT.EXE.
  8. echo Be sure you are in the correct directory.
  9. goto END
  10.  
  11. :OKAY
  12. rem Remove old backups
  13. IF EXIST .\BACKUP\NDOS.COM DEL .\BACKUP\NDOS.COM
  14. IF EXIST .\BACKUP\NDD.EXE DEL .\BACKUP\NDD.EXE
  15. IF EXIST .\BACKUP\RESCUE.EXE DEL .\BACKUP\RESCUE.EXE
  16. IF EXIST .\BACKUP\SFORMAT.EXE DEL .\BACKUP\SFORMAT.EXE
  17.  
  18. rem Actually patch the thing
  19. DOS62UPP DOS62UP
  20.  
  21. rem Remove the files that were extracted and the patch file itself
  22. DEL DOS62UP.RTP > NUL
  23. DEL DOS62UPP.EXE > NUL
  24. DEL DS62UP.EXE > NUL
  25. echo.
  26. echo.
  27. echo The old copies of your changed files and an UNPATCH program
  28. echo have been saved in a subdirectory called BACKUP
  29. echo.
  30. rem Remove this file
  31. DEL DOS62UP.BAT > NUL
  32. :END
  33.