home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 May
/
PCW596.iso
/
polskie
/
cadsoft
/
robstart
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1994-09-02
|
2KB
|
85 lines
@echo off
if a%1==a goto info
if %1==a: goto ok
if %1==b: goto ok
goto info
:ok
REM "t_d" to target_drive, dysk_docelowy
set t_d=c:\
cls
be window 3 2 20 78 BLACK ON WHITE EXPLODE
:menu_drv
be start.dat
if errorlevel 11 goto very_end
if errorlevel 9 goto help_drive
if errorlevel 7 goto f
if errorlevel 5 goto e
if errorlevel 3 goto d
if errorlevel 1 goto c
goto very_end
:c
set t_d=c:\
goto inst_rst
:d
set t_d=d:\
goto inst_rst
:e
set t_d=e:\
goto inst_rst
:f
set t_d=f:\
if not t_d==f:\ goto very_end
:inst_rst
md %t_d%rstarter>nul
md %t_d%rstarter\lib>nul
md %t_d%rstarter\images>nul
md %t_d%rstarter\pbrush>nul
md %t_d%rstarter\dat
%1
dat %t_d%rstarter\dat >nul
be %t_d%rstarter\dat\wait1.dat
rc_rst -d %t_d%rstarter > nul
echo off
%1
:menu_device
be %t_d%rstarter\dat\device.dat
if errorlevel 9 goto very_end
if errorlevel 7 goto help_device
if errorlevel 5 goto vga
if errorlevel 3 goto ega
:hercules
be %t_d%rstarter\dat\wait2.dat
dev_rst keyboard.* her\*.* %t_d%rstarter > nul
goto end
:vga
be %t_d%rstarter\dat\wait2.dat
dev_rst keyboard.* vga\*.* %t_d%rstarter > nul
rem > nul
goto end
:ega
be %t_d%rstarter\dat\wait2.dat
dev_rst keyboard.* ega\*.* %t_d%rstarter > nul
goto end
:help_drive
be help_drv.dat
be window 3 2 20 78 BLACK ON WHITE
goto menu_drv
:help_device
be %t_d%rstarter\dat\help_dev.dat
goto menu_device
:end
dev_rst -d defs\*.* %t_d%rstarter >nul
be %t_d%rstarter\dat\help_end.dat
%t_d%
cd %t_d%rstarter
del dat\*.dat
rd dat
rst
:info
Echo
Echo Poprawna skladnia jest
Echo INSTALL nazwa_dysku_zrodlowego
Echo np.
Echo INSTALL a: lub INSTALL b:
:very_end