home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / upsmange.zip / EDITOR / DESINST1.BAT < prev    next >
DOS Batch File  |  1997-03-11  |  814b  |  43 lines

  1. @echo off
  2.  
  3. rem UM-Editor removal procedure for Windows - version 1.01 (part 2)
  4. rem ---------------------------------------------------------------
  5.  
  6. if "%UMEDP%" == "" goto error
  7. if not exist %UMEDP%\DESINST.BAT  goto error
  8. if not exist %UMEDP%\DESINST1.BAT goto error
  9.  
  10. cd \
  11.  
  12. echo Removing files ...
  13. attrib -r -h %UMEDP%\*.*
  14. for %%f in (%UMEDP%\*.*) do erase %%f
  15.  
  16. if exist \ETC\UMEDPATH erase \ETC\UMEDPATH
  17.  
  18. echo Removing directory : %UMEDP%
  19. rmdir %UMEDP%
  20.  
  21. echo.
  22. echo Removal procedure complete.
  23. echo.
  24. goto end
  25.  
  26. :error
  27. cls
  28. echo.
  29. echo.
  30. echo UM-Editor Windows - Removal procedure
  31. echo -------------------------------------
  32. echo.
  33. echo.
  34. echo DESINST1.BAT cannot be executed, please start
  35. echo DESINST.BAT first.
  36. echo.
  37.  
  38. :end
  39. set UMEDP=
  40. set REPONS=
  41. pause
  42. erase \etc\desinst1.bat
  43.