home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 33 VDrivers / 33-VDrivers.zip / w32sml1.zip / INSTALL.CMD next >
OS/2 REXX Batch file  |  1994-12-11  |  1KB  |  57 lines

  1. @echo off
  2. if not "%1==" goto go
  3. echo Syntax : %0 SysDrive:
  4. echo Purpose: Installs TLIW32PM small fonts driver.
  5. goto end
  6.  
  7. :go
  8. echo Installing
  9. echo:
  10. set TheDLL=%1\OS2\DLL\TLIW32PM
  11. set NewDLL=TLIW32PM.SML
  12.  
  13. if exist %NewDLL% goto newexist
  14. echo %NewDLL% not found. Please run %0 from source path.
  15. goto error
  16.  
  17. :newexist
  18. if exist %TheDLL%.DLL goto rightdrive
  19. echo %TheDLL%.DLL not found. 
  20. echo Either %1 isn't the system drive or you don't run the TLIW32 drivers.
  21. goto error
  22.  
  23. :rightdrive
  24. if not exist %TheDLL%.NRM goto notinstalled
  25. echo %TheDLL%.NRM found.
  26. echo Small fonts driver allready installed.
  27. goto error
  28.  
  29. :notinstalled
  30. copy %TheDLL%.DLL %TheDLL%.NRM
  31. if not errorlevel 1 goto saved
  32. echo There was an error during backup the original %TheDLL%.DLL
  33. goto error
  34.  
  35. :saved
  36. copy %NewDLL% %TheDLL%.SML
  37. if not errorlevel 1 goto copied
  38. echo There was an error during copying the new %NewDLL%
  39. goto error
  40.  
  41. :copied
  42. copy %TheDLL%.SML %TheDLL%.DLL
  43. if not errorlevel 1 goto installed
  44. echo There was an error during replacing the original %TheDLL%.DLL
  45. echo Make sure you run %0 from the maintenace shell!
  46. goto error
  47.  
  48. :installed
  49. echo:
  50. echo Installation successfull. Please type 'exit' to reboot.
  51. goto end
  52.  
  53. :error
  54. echo:
  55. echo Installation aborted.
  56. :end
  57.