home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
upsmange.zip
/
EDITOR
/
DESINST.BAT
next >
Wrap
DOS Batch File
|
1996-02-28
|
1KB
|
63 lines
@echo off
rem UM-Editor removal procedure for Windows - version 1.00 (part 1)
rem ---------------------------------------------------------------
cls
echo.
echo.
echo UM-Editor removal procedure
echo ---------------------------
echo.
echo.
if not exist UMED.EXE goto baddir
if not exist GETVAR.EXE goto incdir
if not exist DESINST1.BAT goto incdir
echo This program will erase all UM-Editor files and directories.
echo You MUST stop UM-Editor before starting removal procedure.
echo Continue (Y/N) ?
getvar.exe REPONS
call setenv.bat
if not "%REPONS%" == "Y" if not "%REPONS%" == "y" goto abort
if not exist \ETC\UMEDPATH goto nopath
getvar.exe UMEDP <\ETC\UMEDPATH
call setenv.bat
if "%UMEDP%" == "" goto nopath
erase %UMEDP%\UMED.EXE >nul
if exist %UMEDP%\UMED.EXE goto running
copy %UMEDP%\DESINST1.BAT \ETC >nul
\ETC\DESINST1.BAT
echo Error : file DESINST1.BAT cannot be accessed or copied.
goto abort
:running
echo Error : UM-Editor is running.
goto abort
:nopath
echo Error : file \ETC\UMEDPATH not found or incorrect.
goto abort
:incdir
echo Error : utilities are missing in UM-Editor directory,
echo check GETVAR.EXE and DESINST1.BAT.
goto abort
:baddir
echo Error : current directory must be directory where UM-Editor is installed.
:abort
echo Removal procedure aborted.
echo.
set UMEDP=
set REPONS=
pause