home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 3 / CHIP_HITWARE3.iso / chiphit3 / tools / 95mmouse / mbut-del.cmd < prev    next >
OS/2 REXX Batch file  |  1996-06-07  |  2KB  |  81 lines

  1. @echo off
  2. if "%1" == "" goto done
  3. if exist "%1\*.*" goto doit1
  4. if exist "%1 %2\*.*" goto doit2
  5. if exist "%1 %2 %3\*.*" goto doit3
  6. if exist "%1 %2 %3 %4\*.*" goto doit4
  7. goto done
  8. :doit4
  9. echo You are about to remove Middle Mouse Button ver 1.9.0e
  10. echo from %1 %2 %3 %4
  11. echo. 
  12. yesno Do you wish to continue with this un-install process
  13. if errorlevel 1 goto YES4
  14. goto DONE
  15. :YES4
  16. echo.
  17. if exist "%1 %2 %3 %4\MBUTTON.EXE" "%1 %2 %3 %4\MBUTTON.EXE" -uninstall
  18. if exist "%1 %2 %3 %4\MBUT*.TXT" del "%1 %2 %3 %4\MBUT*.TXT"
  19. if exist "%1 %2 %3 %4\MBUT*.WRI" del "%1 %2 %3 %4\MBUT*.WRI"
  20. if exist "%1 %2 %3 %4\MBUTTON.EXE" del "%1 %2 %3 %4\MBUTTON.EXE"
  21. if exist "%1 %2 %3 %4\MBHOOK.DLL" del "%1 %2 %3 %4\MBHOOK.DLL"
  22. rd "%1 %2 %3 %4"
  23. goto done1
  24. :doit3
  25. echo You are about to remove Middle Mouse Button ver 1.9.0e
  26. echo from %1 %2 %3
  27. echo. 
  28. yesno Do you wish to continue with this un-install process
  29. if errorlevel 1 goto YES3
  30. goto DONE
  31. :YES3
  32. echo.
  33. if exist "%1 %2 %3\MBUTTON.EXE" "%1 %2 %3\MBUTTON.EXE" -uninstall
  34. if exist "%1 %2 %3\MBUT*.TXT" del "%1 %2 %3\MBUT*.TXT"
  35. if exist "%1 %2 %3\MBUT*.WRI" del "%1 %2 %3\MBUT*.WRI"
  36. if exist "%1 %2 %3\MBUTTON.EXE" del "%1 %2 %3\MBUTTON.EXE"
  37. if exist "%1 %2 %3\MBHOOK.DLL" del "%1 %2 %3\MBHOOK.DLL"
  38. rd "%1 %2 %3"
  39. goto done1
  40. :doit2
  41. echo You are about to remove Middle Mouse Button ver 1.9.0e
  42. echo from %1 %2
  43. echo. 
  44. yesno Do you wish to continue with this un-install process
  45. if errorlevel 1 goto YES2
  46. goto DONE
  47. :YES2
  48. echo.
  49. if exist "%1 %2\MBUTTON.EXE" "%1 %2\MBUTTON.EXE" -uninstall
  50. if exist "%1 %2\MBUT*.TXT" del "%1 %2\MBUT*.TXT"
  51. if exist "%1 %2\MBUT*.WRI" del "%1 %2\MBUT*.WRI"
  52. if exist "%1 %2\MBUTTON.EXE" del "%1 %2\MBUTTON.EXE"
  53. if exist "%1 %2\MBHOOK.DLL" del "%1 %2\MBHOOK.DLL"
  54. rd "%1 %2"
  55. goto done1
  56. :doit1
  57. echo You are about to remove Middle Mouse Button ver 1.9.0e
  58. echo from %1
  59. echo. 
  60. yesno Do you wish to continue with this un-install process
  61. if errorlevel 1 goto YES1
  62. goto DONE
  63. :YES1
  64. echo.
  65. if exist "%1\MBUTTON.EXE" "%1\MBUTTON.EXE" -uninstall
  66. if exist "%1\MBUT*.TXT" del "%1\MBUT*.TXT"
  67. if exist "%1\MBUT*.WRI" del "%1\MBUT*.WRI"
  68. if exist "%1\MBUTTON.EXE" del "%1\MBUTTON.EXE"
  69. if exist "%1\MBHOOK.DLL" del "%1\MBHOOK.DLL"
  70. rd "%1"
  71. :done1
  72. echo.
  73. echo Middle Mouse Button ver 1.9.0e has been removed.
  74. echo.
  75. echo You will need to manually delete any program groups
  76. echo or icons which relate to this application.
  77. echo.
  78. pause
  79. :done
  80. EXIT
  81.