home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / newdlg11.zip / patch.cmd < prev    next >
OS/2 REXX Batch file  |  1996-07-01  |  796b  |  40 lines

  1. @echo off
  2. REM ************************
  3. REM NewDlg v1.1 Patch script
  4. REM (C)opyright Tomas Ögren
  5. REM   stric@freenet.hut.fi
  6. REM ************************
  7.  
  8. if .%1.==.. goto NoParams
  9. if .%2.==.. goto NoParams
  10. if not exist %1 goto FileNotFound
  11. set res=NONE
  12. if .%2.==.SMALL. set res=256.4s
  13. if .%2.==.LARGE. set res=256.4l
  14. if .%res.==.NONE. goto WrongParams
  15.  
  16. call resmgr -d %1 %res
  17. call resmgr -a %1 %res
  18. echo Patch applied!
  19. goto TheEnd
  20.  
  21. :FileNotFound
  22. echo Error: %1: File not found!
  23. goto Usage
  24.  
  25. :WrongParams
  26. echo Error: Second parameter should be LARGE or SMALL, nothing else.
  27. goto Usage
  28.  
  29. :NoParams
  30. echo Error: Not enough parameters!
  31. goto Usage
  32.  
  33. :Usage
  34. echo.
  35. echo Usage: PATCH.CMD dll_filename LARGE/SMALL
  36. echo.
  37. echo See file Readme for more information
  38.  
  39. :TheEnd
  40.