home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Direkt 1995 #6
/
CDD_6_95.ISO
/
cdd
/
dosanw
/
cdp
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1995-01-03
|
4KB
|
179 lines
@echo off
:START
rem Start INSTALL.BAT: INSTALL Quelle Ziel (A: bis Z: ist möglich)
rem Beispiel: A:INSTALL A: C:
rem Quell- und Ziellaufwerk angegeben? - wenn nicht, dann HILFE1
if "%1"=="" goto HELP1
if "%2"=="" goto HELP1
echo.
echo.
echo INSTALLATION: SoftNews MultiMedia CD-Player (CDP)
echo Shareware-Version 1.23S
echo.
rem Überprüfen ob Laufwerksbuchstabe richtig angegeben ist.. A bis Z.
if %1==A: goto ZIEL
if %1==B: goto ZIEL
if %1==C: goto ZIEL
if %1==D: goto ZIEL
if %1==E: goto ZIEL
if %1==F: goto ZIEL
if %1==G: goto ZIEL
if %1==H: goto ZIEL
if %1==I: goto ZIEL
if %1==J: goto ZIEL
if %1==K: goto ZIEL
if %1==L: goto ZIEL
if %1==M: goto ZIEL
if %1==N: goto ZIEL
if %1==O: goto ZIEL
if %1==P: goto ZIEL
if %1==Q: goto ZIEL
if %1==R: goto ZIEL
if %1==S: goto ZIEL
if %1==T: goto ZIEL
if %1==U: goto ZIEL
if %1==V: goto ZIEL
if %1==W: goto ZIEL
if %1==X: goto ZIEL
if %1==Y: goto ZIEL
if %1==Z: goto ZIEL
if %1==a: goto ZIEL
if %1==b: goto ZIEL
if %1==c: goto ZIEL
if %1==d: goto ZIEL
if %1==e: goto ZIEL
if %1==f: goto ZIEL
if %1==g: goto ZIEL
if %1==h: goto ZIEL
if %1==i: goto ZIEL
if %1==j: goto ZIEL
if %1==k: goto ZIEL
if %1==l: goto ZIEL
if %1==m: goto ZIEL
if %1==n: goto ZIEL
if %1==o: goto ZIEL
if %1==p: goto ZIEL
if %1==q: goto ZIEL
if %1==r: goto ZIEL
if %1==s: goto ZIEL
if %1==t: goto ZIEL
if %1==u: goto ZIEL
if %1==v: goto ZIEL
if %1==w: goto ZIEL
if %1==x: goto ZIEL
if %1==y: goto ZIEL
if %1==z: goto ZIEL
goto HELP1
:ZIEL
if %2==A: goto DRIVEOK
if %2==B: goto DRIVEOK
if %2==C: goto DRIVEOK
if %2==D: goto DRIVEOK
if %2==E: goto DRIVEOK
if %2==F: goto DRIVEOK
if %2==G: goto DRIVEOK
if %2==H: goto DRIVEOK
if %2==I: goto DRIVEOK
if %2==J: goto DRIVEOK
if %2==K: goto DRIVEOK
if %2==L: goto DRIVEOK
if %2==M: goto DRIVEOK
if %2==N: goto DRIVEOK
if %2==O: goto DRIVEOK
if %2==P: goto DRIVEOK
if %2==Q: goto DRIVEOK
if %2==R: goto DRIVEOK
if %2==S: goto DRIVEOK
if %2==T: goto DRIVEOK
if %2==U: goto DRIVEOK
if %2==V: goto DRIVEOK
if %2==W: goto DRIVEOK
if %2==X: goto DRIVEOK
if %2==Y: goto DRIVEOK
if %2==Z: goto DRIVEOK
if %2==a: goto DRIVEOK
if %2==b: goto DRIVEOK
if %2==c: goto DRIVEOK
if %2==d: goto DRIVEOK
if %2==e: goto DRIVEOK
if %2==f: goto DRIVEOK
if %2==g: goto DRIVEOK
if %2==h: goto DRIVEOK
if %2==i: goto DRIVEOK
if %2==j: goto DRIVEOK
if %2==k: goto DRIVEOK
if %2==l: goto DRIVEOK
if %2==m: goto DRIVEOK
if %2==n: goto DRIVEOK
if %2==o: goto DRIVEOK
if %2==p: goto DRIVEOK
if %2==q: goto DRIVEOK
if %2==r: goto DRIVEOK
if %2==s: goto DRIVEOK
if %2==t: goto DRIVEOK
if %2==u: goto DRIVEOK
if %2==v: goto DRIVEOK
if %2==w: goto DRIVEOK
if %2==x: goto DRIVEOK
if %2==y: goto DRIVEOK
if %2==z: goto DRIVEOK
goto HELP1
:DRIVEOK
rem Laufwerksangaben ok, trotzdem wissen wir nicht, ob das angegebene
rem Ziel-Laufwerk wirklich existiert - also prüfen (WHAT YE).
%2:
:DRIVEOK2
cd \
rem echo %1what f %1WHAT.EXE
rem echo if %what%==0 goto ABBRUCH
:CDP-DEMO
rem CDP-Verzeichnis überprüfen und ggf. machen
%1what f CDP123S
if %what%==255 cd cdp123s
if %WHAT%==255 goto INST_CDP
if %what%==0 md cdp123S
goto CDP-DEMO
:INST_CDP
rem WHAT.EXE und INST_CDP.BAT ins \CDP123S - Verzeichnis kopieren
copy %1what.EXE >NUL
copy %1INST_CDP.BAT >NUL
INST_CDP.BAT %1 %2
:HELP1
echo.
echo.
echo.
echo CDP - Installationshilfe 01/95
echo ------------------------------------ -----
echo.
echo Start INSTALL.BAT: INSTALL Quelle(Diskettenlaufwerk) Ziel(Festplatte)
echo.
echo Beispiel: A:INSTALL A: C: oder A:INSTALL A: D:
echo.
echo Alle erforderlichen Daten werden in ein Verzeichnis '\CDP123S' kopiert
echo.
echo Bitte starten Sie INSTALL erneut mit den Laufwerksangaben.
echo.
goto ENDE
:ABBRUCH
echo ***** Installation abgebrochen.
:ENDE