home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
upsmange.zip
/
CLIENT
/
DESINST.BAT
next >
Wrap
DOS Batch File
|
1996-01-05
|
1KB
|
61 lines
@echo off
rem UM-Client removal procedure OS/2 (part 1) V2.02
rem -----------------------------------------------
cls
echo.
echo.
echo UM-Client for OS/2 removal procedure
echo ------------------------------------
echo.
echo.
if not exist UMC.EXE goto baddir
if not exist GETVAR.EXE goto incdir
if not exist UMC_STOP.EXE goto incdir
echo This program will erase all UM-Client files and directories.
echo You must stop UM-Client 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\UMC_PATH goto nopath
getvar.exe UMC_PATH < \ETC\UMC_PATH
call setenv.bat
if "%UMC_PATH%" == "" goto errenvi
erase %UMC_PATH%\UMC.EXE >nul
if exist %UMC_PATH%\UMC.EXE goto running
copy %UMC_PATH%\desinst1.bat \ETC >nul
\ETC\desinst1.bat
echo Error : file DESINST1.BAT cannot be accessed or copied.
goto abort
:running
echo Error : UM-Client is running.
goto abort
:nopath
echo Error : file \ETC\UMC_PATH not found.
goto abort
:incdir
echo Error : utilities are missing in UM-Client directory,
echo check GETVAR.EXE, UMC_STOP.EXE.
goto abort
:errenvi
echo DOS environment error,
goto abort
:baddir
echo Error : current directory must be directory where UM-Client is installed.
:abort
echo Removal procedure aborted.
echo.
pause