home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 33 VDrivers
/
33-VDrivers.zip
/
w32sml1.zip
/
INSTALL.CMD
next >
Wrap
OS/2 REXX Batch file
|
1994-12-11
|
1KB
|
57 lines
@echo off
if not "%1==" goto go
echo Syntax : %0 SysDrive:
echo Purpose: Installs TLIW32PM small fonts driver.
goto end
:go
echo Installing
echo:
set TheDLL=%1\OS2\DLL\TLIW32PM
set NewDLL=TLIW32PM.SML
if exist %NewDLL% goto newexist
echo %NewDLL% not found. Please run %0 from source path.
goto error
:newexist
if exist %TheDLL%.DLL goto rightdrive
echo %TheDLL%.DLL not found.
echo Either %1 isn't the system drive or you don't run the TLIW32 drivers.
goto error
:rightdrive
if not exist %TheDLL%.NRM goto notinstalled
echo %TheDLL%.NRM found.
echo Small fonts driver allready installed.
goto error
:notinstalled
copy %TheDLL%.DLL %TheDLL%.NRM
if not errorlevel 1 goto saved
echo There was an error during backup the original %TheDLL%.DLL
goto error
:saved
copy %NewDLL% %TheDLL%.SML
if not errorlevel 1 goto copied
echo There was an error during copying the new %NewDLL%
goto error
:copied
copy %TheDLL%.SML %TheDLL%.DLL
if not errorlevel 1 goto installed
echo There was an error during replacing the original %TheDLL%.DLL
echo Make sure you run %0 from the maintenace shell!
goto error
:installed
echo:
echo Installation successfull. Please type 'exit' to reboot.
goto end
:error
echo:
echo Installation aborted.
:end