@echo off
if %3 == install goto install
echo If you wish to install NASCAR Racing into your system,
echo please run the INSTALL.EXE program.
goto exit

rem   usage:  inst  from_drive to_drive install
rem example:  inst  d: c: install

:install

%2
md cars
cd cars
md cars94
cd cars94
copy %1\nascar\cars\cars94\cars94.dat
copy %1\nascar\cars\cars94\drivers.txt
cd ..\..

md effects
md objs
md rol
md sound

md tracks
cd tracks

md atlanta
cd atlanta
copy %1\nascar\tracks\atlanta\atlanta.txt
copy %1\nascar\tracks\atlanta\*.st?
copy %1\nascar\tracks\atlanta\records.txt
cd ..

md bristol
cd bristol
copy %1\nascar\tracks\bristol\bristol.txt
copy %1\nascar\tracks\bristol\*.st?
copy %1\nascar\tracks\bristol\records.txt
cd ..

md darlingt
cd darlingt
copy %1\nascar\tracks\darlingt\darlingt.txt
copy %1\nascar\tracks\darlingt\*.st?
copy %1\nascar\tracks\darlingt\records.txt
cd ..

md michigan
cd michigan
copy %1\nascar\tracks\michigan\michigan.txt
copy %1\nascar\tracks\michigan\*.st?
copy %1\nascar\tracks\michigan\records.txt
cd ..

md mrtnsvil
cd mrtnsvil
copy %1\nascar\tracks\mrtnsvil\mrtnsvil.txt
copy %1\nascar\tracks\mrtnsvil\*.st?
copy %1\nascar\tracks\mrtnsvil\records.txt
cd ..

md nwenglnd
cd nwenglnd
copy %1\nascar\tracks\nwenglnd\nwenglnd.txt
copy %1\nascar\tracks\nwenglnd\*.st?
copy %1\nascar\tracks\nwenglnd\records.txt
cd ..

md phoenix
cd phoenix
copy %1\nascar\tracks\phoenix\phoenix.txt
copy %1\nascar\tracks\phoenix\*.st?
copy %1\nascar\tracks\phoenix\records.txt
cd ..

md taladega
cd taladega
copy %1\nascar\tracks\taladega\taladega.txt
copy %1\nascar\tracks\taladega\*.st?
copy %1\nascar\tracks\taladega\records.txt
cd ..

md watglen
cd watglen
copy %1\nascar\tracks\watglen\watglen.txt
copy %1\nascar\tracks\watglen\*.st?
copy %1\nascar\tracks\watglen\records.txt
cd ..\..

md paintkit
cd paintkit
copy %1\nascar\paintkit\*.*
cd ..

copy %1\nascar\rminfo.exe
copy %1\nascar\pminfo32.exe
copy %1\nascar\paintkit.exe
copy %1\nascar\hmi*.386
copy %1\nascar\nascar.exe
copy %1\nascar\setup.exe
copy %1\nascar\setup.cfg
copy %1\nascar\controls.cfg
copy %1\nascar\sound.cfg
copy %1\nascar\gameopts.cfg
copy %1\nascar\modems.cfg
copy %1\nascar\mip.cfg
copy %1\nascar\calendar
copy %1\nascar\loadpats.exe
copy %1\nascar\patches.ini
copy %1\nascar\readme.txt
copy %1\nascar\main.dat
echo %1\nascar > lib.cfg

:exit
