@echo off
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo                            Motorola Install Program
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
set diskdir=Program
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo                             Checking Options .......
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
if "%1" == "" goto usage
if not exist %1\nul goto bad_drive
:get_disk
if exist %diskdir%\nul goto copy_files
echo Please insert the "%diskdir%" Disk
pause
goto get_disk
:copy_files
if not exist %1\rss\nul md %1\rss
if not exist %1\rss\gm900\nul md %1\rss\gm900
cls
echo.
echo.
echo Copying files
copy %diskdir%\*.* %1\rss\gm900\*.*
:database_disk
if "%diskdir%" == "Database" goto message
set diskdir=Database
goto get_disk
:message
cls  
more < %diskdir%\read_me.txt
echo.
echo.                 
echo.  This information, found in the read_me.txt file on this disk, has
echo.  been copied onto the hard drive by this installation program.
echo.
echo.
echo.
echo.
echo                          Installation Complete
echo.
echo.
echo.
echo                  The  900 Series RSS is now installed on 
echo.
echo                            %1\rss\gm900
echo.
echo.
echo          To run the RSS go to the directory and type 900_eng
echo.
echo.
echo.
goto the_end
:bad_drive
cls
echo.
echo.
echo               Error:  Can't find drive %1
echo.
echo.
goto the_end
:usage
cls
echo.
echo.
echo               Error: target drive not specified
echo               Usage: install [target_drive:]
echo.
echo.
echo.
:the_end
