home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
windows
/
win31
/
mhg0013s.arj
/
INSTALLS.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-07-04
|
3KB
|
73 lines
echo off
cls
echo 'MHG*ArcLib V1 - Small Package Installation batch file.
echo 'Provided by Marshall H. Goodman Software Ltd.
echo '
echo 'Batch File syntax: INSTALLS path drive
echo ' where: 'path' is the sub-dir where WINDOWS is installed
echo ' where: 'drive' is where you want MHG*ArcLib to be installed
echo '
echo ' eg: INSTALLS E:\WINDOWS D:
echo '
echo 'This batch file will create the MHGARLIB sub-directory on the requested
echo 'drive, copy the install files to the MHG*ArcLib sub-directory and expand
echo 'the compressed file AL_PKG there. Several DLL's will be copied to
echo 'your windows\system sub-directory. Then you can start up the MHGARLIB.EXE
echo 'program from Windows.
echo '
echo 'Windows is in your %1 sub-directory and
echo 'MHG*ArcLib will be installed on your %2 drive
echo 'If this is not correct, press CTRL-BREAK followed by 'Y' to terminate.
echo '
pause
if "%1" == "" goto NOPATH
if "%2" == "" goto NODRIVE
if not exist %1\SYSTEM\*.* goto PATHNO
if not exist %2\*.* goto DRIVENO
md %2\mhgarlib
if not errorlevel 0 goto NODIR
md %2\mhgarlib\arcwork
md %2\mhgarlib\target
if not errorlevel 0 goto NODIR
copy *.* %2\mhgarlib
%2\mhgarlib\SM_AL_PKG.EXE %2\mhgarlib
copy %2\mhgarlib\SETUPKIT.DLL %1\SYSTEM
copy %2\mhgarlib\COMPRESS.DLL %1\SYSTEM
if not exist %1\SYSTEM\VER.DLL copy %2\mhgarlib\VER.DLL %1\SYSTEM
if not exist %1\SYSTEM\VXBASE.DLL copy %2\mhgarlib\VXBASE.DLL %1\SYSTEM
copy %2\mhgarlib\GRID.VBX %1\SYSTEM
erase %2\mhgarlib\SETUPKIT.DLL
erase %2\mhgarlib\COMPRESS.DLL
erase %2\mhgarlib\VER.DLL
erase %2\mhgarlib\VXBASE.DLL
erase %2\mhgarlib\GRID.VBX
erase %2\mhgarlib\SM_AL_PKG.EXE
echo Copying complete. You can now enter Windows and run MHGARLIB.EXE from
echo the \MHGARLIB sub-directory on this drive.
echo Note: ignore the following 'batch file missing' message, it's ok.
erase SM_AL_PKG.EXE
erase FEATURES.DOC
erase BBS_DESC.DOC
erase READ1STS.DOC
erase SMLZLIST.DOC
erase MHG*.ZIP
goto FINAL
:NODRIVE
echo You have not specified a drive letter for MHG*ArcLib. INSTALL Cancelled.
goto ZM_EXIT
:NOPATH
echo You have not specified a path where WINDOWS is. INSTALL Cancelled.
goto ZM_EXIT
:DRIVENO
echo The drive letter %2 does not exist. INSTALL Cancelled.
goto ZM_EXIT
:PATHNO
echo The sub-directory %1 does not exist. INSTALL Cancelled.
goto ZM_EXIT
:NODIR
echo The attempt to make the MHGARLIB sub-directory failed. INSTALL Cancelled.
goto ZM_EXIT
:FINAL
erase INSTALLS.BAT
:ZM_EXIT