home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of the Best
/
_.img
/
02043
/
kfz
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1992-02-01
|
5KB
|
127 lines
@echo off
REM ┌─────────────────────────────────────────────────────────────────────────┐
REM │ (C) Copyright Erich Schuster 1992 │
REM │ │
REM │ Batch zum Installieren des Programm-Paketes │
REM └─────────────────────────────────────────────────────────────────────────┘
cls
if not exist install.bat goto noprog
if '%1' == '' goto noparm
if '%2' == '' goto noparm
if not exist drive.exe goto errdisk
if not exist list.exe goto errdisk
if not exist ok.txt goto errdisk
drive %1 >NUL
if errorlevel 255 goto error
if errorlevel 1 goto errlw
:DRIVEOK
echo:
echo Das Unterverzeichnis %1:\%2 wird angelegt...
echo:
if not exist bestell*.txt goto errdisk
xcopy bestell*.txt %1:\%2\ >nul
if errorlevel 1 goto error
:INSTALL
echo:
echo Das Programm-Paket wird installiert...
echo:
if not exist ix.bat goto copy
call ix %1 %2
goto fertig
:COPY
xcopy *.* %1:\%2\ /V
cls
echo:
echo Noch einen kleinen Moment bitte...
echo:
if exist %1:\%2\liesmich.bat erase %1:\%2\liesmich.bat
if exist %1:\%2\install.bat erase %1:\%2\install.bat
if exist %1:\%2\drive.exe erase %1:\%2\drive.exe
if exist %1:\%2\ok.txt erase %1:\%2\ok.txt
:FERTIG
cls
if exist ok.txt list ok.txt
%1:
cd \%2
goto end
:NOPROG
echo
echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
echo █ Fehler: █
echo █ ─────── █
echo █ Zur Installation muß das Quell-Laufwerk, also das █
echo █ Disketten-Laufwerk (meistens A:), das aktuelle Lauf- █
echo █ werk sein. █
echo █ █
echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
echo:
goto end
:NOPARM
echo
echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
echo █ █
echo █ Bitte die Installationsprozedur wie folgt aufrufen: █
echo █ █
echo █ INSTALL [LW] [PATH] █
echo █ █
echo █ LW = C (gültiges Laufwerk OHNE Doppelpunkt) █
echo █ PATH = Pfadname (ohne \ am Anfang oder Ende) █
echo █ █
echo █ Beispiel: install c test █
echo █ oder: install d public\test █
echo █ █
echo █ █
echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
echo:
goto end
:ERRDISK
echo
echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
echo █ Fehler: █
echo █ ─────── █
echo █ Auf dieser Diskette fehlt eine benötigte Datei ! █
echo █ Das heißt, das ist nicht die Original-Shareware- █
echo █ diskette. Bitte reklamieren ! █
echo █ █
echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
echo:
goto end
:ERRLW
echo
echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
echo █ Fehler: █
echo █ ─────── █
echo █ Bitte als Laufwerksangabe nur einen Buchstaben ohne █
echo █ Doppelpunkt mitgeben ! █
echo █ █
echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
echo:
goto end
:ERROR
echo
echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
echo █ Fehler: █
echo █ ─────── █
echo █ Bitte INSTALL mit gültigem Ziel-Laufwerk und █
echo █ Verzeichnis aufrufen ! █
echo █ █
echo █ Beispiel: install c test (2 Parameter) █
echo █ █
echo █ Verzeichnis ohne \ am Anfang oder Ende, also NICHT █
echo █ \test oder test\ ! █
echo █ █
echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
echo:
:END
echo: