home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / upsmange.zip / CLIENT / DESINST.BAT next >
DOS Batch File  |  1996-01-05  |  1KB  |  61 lines

  1. @echo off
  2. rem UM-Client removal procedure OS/2 (part 1) V2.02
  3. rem -----------------------------------------------
  4. cls
  5. echo.
  6. echo.
  7. echo UM-Client for OS/2 removal procedure
  8. echo ------------------------------------
  9. echo.
  10. echo.
  11.  
  12. if not exist UMC.EXE goto baddir
  13. if not exist GETVAR.EXE goto incdir
  14. if not exist UMC_STOP.EXE goto incdir
  15. echo This program will erase all UM-Client files and directories.
  16. echo You must stop UM-Client before starting removal procedure.
  17. echo Continue (Y/N) ?
  18.  
  19. getvar.exe REPONS
  20. call setenv.bat
  21. if not "%REPONS%" == "Y" if not "%REPONS%" == "y" goto abort
  22.  
  23. if not exist \ETC\UMC_PATH goto nopath
  24. getvar.exe UMC_PATH < \ETC\UMC_PATH
  25. call setenv.bat
  26. if "%UMC_PATH%" == "" goto errenvi
  27.  
  28. erase %UMC_PATH%\UMC.EXE >nul
  29. if exist %UMC_PATH%\UMC.EXE goto running
  30.  
  31. copy %UMC_PATH%\desinst1.bat \ETC >nul
  32.  
  33. \ETC\desinst1.bat
  34. echo Error : file DESINST1.BAT cannot be accessed or copied.
  35. goto abort
  36.  
  37. :running
  38. echo Error : UM-Client is running.
  39. goto abort
  40.  
  41. :nopath
  42. echo Error : file \ETC\UMC_PATH not found.
  43. goto abort
  44.  
  45. :incdir
  46. echo Error : utilities are missing in UM-Client directory,
  47. echo         check GETVAR.EXE, UMC_STOP.EXE.
  48. goto abort
  49.  
  50. :errenvi
  51. echo DOS environment error,
  52. goto abort
  53.  
  54. :baddir
  55. echo Error : current directory must be directory where UM-Client is installed.
  56.  
  57. :abort
  58. echo Removal procedure aborted.
  59. echo.
  60. pause
  61.