home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boink! 1995 May/June
/
Image.bin
/
spiele
/
f_rkinde
/
teddy
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-03-31
|
3KB
|
129 lines
echo off
:plattenwahl
taste title Teddy - Teil I - Sharewareversion
echo Dieses Programm dient dazu, Teddy auf Ihre
echo Festplatte zu installieren.
echo:
taste getdrv
if errorlevel = 6 goto gf
if errorlevel = 5 goto ge
if errorlevel = 4 goto gd
if errorlevel = 3 goto gc
if errorlevel = 2 goto gb
if errorlevel = 1 goto ga
:GA
set getdrv=A:
goto weiter0
:GB
set getdrv=B:
goto weiter0
:GC
set getdrv=C:
goto weiter0
:GD
set getdrv=D:
goto weiter0
:GE
set getdrv=E:
goto weiter0
:GF
set getdrv=F:
goto weiter0
:weiter0
echo Bitte wählen Sie, auf welche Festplatte Sie Teddy
echo installieren möchten:
echo:
echo:
echo A - Diskettenlaufwerk ... A:\TEDDY
echo B - Diskettenlaufwerk ... B:\TEDDY
echo C - Festplatte ... C:\TEDDY
echo D - Festplatte ... D:\TEDDY
echo E - Festplatte ... E:\TEDDY
echo F - Festplatte ... F:\TEDDY
echo:
echo X - ENDE (Abbruch der Installation)
echo:
echo Bitte wählen Sie aus....
taste key a b c d e f x
if errorlevel 88 goto ende
if errorlevel 70 goto f
if errorlevel 69 goto e
if errorlevel 68 goto d
if errorlevel 67 goto c
if errorlevel 66 goto b
if errorlevel 65 goto a
:A
set drv=A:
goto testspace
:B
set drv=B:
goto testspace
:C
set drv=C:
goto testspace
:D
set drv=D:
goto testspace
:E
set drv=E:
goto testspace
:F
set drv=F:
goto testspace
:testspace
if %getdrv% == %drv% goto samedrive
goto weiter2
:samedrive
echo:
echo Das Ziellaufwerk darf nicht das Laufwerk sein, von dem aus
echo installiert wird.
echo:
goto ende
:weiter2
taste title Teddy - Teil I - Sharewareversion
echo Überprüfe, ob Teddy komplett installiert werden kann....
echo:
echo Bitte warten...
taste free %drv% 3000
if errorlevel 2 goto falscheslaufwerk
if errorlevel 1 goto nichtgenugspeicher
goto weiter1
:falscheslaufwerk
echo:
echo:
echo Das ausgewählte Laufwerk kann nicht richtig angesprochen werden
echo oder es ist bis auf das letzte Byte belegt.
echo:
echo Installation wird abgebrochen...
echo:
goto ende
:nichtgenugspeicher
echo:
echo:
echo Auf der ausgewählten Festplatte/Diskette ist nicht genügend
echo freier Speicher, um Teddy vollständig zu installieren!
echo:
echo Möchten Sie dennoch fortfahren? (J/N) ...
taste key j n
if errorlevel = 78 goto ende
:weiter1
taste title Teddy - Teil I - Sharewareversion
echo * Erstellen des Teddy Verzeichnisses:%DRV%\TEDDY
md %drv%\TEDDY
echo * Installation des Hauptprogrammes
echo:
cd %drv%\TEDDY
%drv%
copy %getdrv%taste.exe
copy %getdrv%install2._at *.bat
install2.bat
:ende