home *** CD-ROM | disk | FTP | other *** search
- echo off
- :
- ::ASAP Installation
- :
- cls
- echo install %1 %2 %3 %4 %5 %6>yoursyn.bat
- ::test for enough environment space
- :begin
- set asap=AutomaticScreenAccess
- if %asap%==AutomaticScreenAccess goto enough
- goto noroom
- :enough
- ::set destination directory
- SET ASAP=C:\ASAP
- ::set name of startup command (s.bat)
- set s=c:\s.bat
- :
- if %1x==x goto describe0
- set file=ASAP
- if exist %asap%\install.bat goto Don'tMake
- md %asap%>nul
- :Don'tMake
- :
- if %c%x==yesx goto AlreadyIn
- copy install.bat %asap%>nul
- if errorlevel 1 goto fail
- set c=yes
- call %asap%\install.bat %1 %2 %3 %4
- del %asap%\install.bat>nul
- goto exit
- :
- ::describe usage
- :
- :describe0
- if exist %asap%\asap.com goto update
- :DESCRIBE
- echo ·
- echo Usage: install [synthesizer] [port] [y or n]
- echo ·
- echo where [synthesizer] is one of the following:
- echo accent for the Accent
- echo audapter for the audapter
- echo BNS for the Braille 'n Speak
- echo dectalk for the DEC-Talk
- echo doubletalk for the DoubleTalk
- echo echo for the Echo-PC
- echo talk for other Echos
- echo generic for synthesizers not listed here
- echo lt for the LiteTalk or LapTalk
- echo porttalk for synthesizers that use PortTalk
- echo sb for the Sounding Board
- echo synphonix for the SynPhonix (Artic) board
- echo votalker for the VoTalker
- echo ·
- echo [port] is one of the following:
- echo com1, com2, com3, com4, lpt1, lpt2, or lpt3.
- echo You don't have to give the port for DoubleTalk, SynPhonix, or VoTalker.
- echo (You should use lpt3 as the port for Accent-PC and Sounding Board.)
- echo ·
- echo [y or n] is the letter y if your computer is an XT or older, n if it is newer.
- rem echo ·
- goto exit
- :
- :AlreadyIn
- set c=
- echo One moment please
- echo ·
- :
- ::create the first lines of the batch file that will start ASAP
- :
- echo echo off>%s%
- echo path=%asap%;%%path%% >> %s%
- echo cd %asap%>>%s%
- :
- if %1==accent goto other
- if %1==audapter goto other
- if %1==bns goto other
- if %1==dectalk goto other
- if %1==doubletalk goto other
- if %1==echo goto other
- if %1==talk goto other
- if %1==generic goto other
- if %1==lt goto other
- if %1==porttalk goto other
- if %1==sb goto other
- if %1==synphonix goto other
- if %1==votalker goto other
- echo warning: You didn't specify a recognized synthesizer key word.
- goto describe
- :
- :other
- :
- if %2==com1 goto goodport
- if %2==com2 goto goodport
- if %2==com3 goto goodport
- if %2==com4 goto goodport
- if %2==lpt1 goto goodport
- if %2==lpt2 goto goodport
- if %2==lpt3 goto goodport
- if %1==doubletalk goto internal
- if %1==synphonix goto internal
- if %1==votalker goto internal
- echo Warning: you forgot to specify where your synthesizer is connected.
- goto describe
- :
- :goodport
- :
- if %1==doubletalk goto Don'tPort
- if %1==synphonix goto Don'tPort
- if %1==votalker goto Don'tPort
- if %3x==x goto NoKey
- if %3==y goto goodkey
- if %3==n goto goodkey
- :
- :badkey
- echo Warning: You must specify if your computerr is an XT or older.
- goto describe
- :
- :goodkey
- set line=checkSB
- goto ShowMsg
- :
- :checkSB
- if %1==talk goto talk
- if %1==sb goto sb
- :
- ::finish up the batch file that will start ASAP
- :
- echo asap %1 %2 @y%3%4%%1>>%s%
- goto FinishUp
- :
- :NoKey
- echo Warning: You forgot to specify if your computer is an XT or older.
- goto describe
- :
- ::call with %file=file to copy, %disk=disk it is on, %line=where to go afterward
- :
- :checkfile
- if exist %file% goto copyfile
- cls
- echo ·
- echo Please remove this disk and insert the disk containing the file %file%.
- echo ·
- echo This should be located on the %disk% disk.
- echo ·
- pause
- goto checkfile
- :
- :copyfile
- echo copying file: %file%...
- echo ·
- copy %file% %asap%>nul
- if errorlevel 1 goto fail
- echo done.
- echo ·
- goto %line%
- :
- :fail
- echo ·
- echo Warning: an error ocurred while copying %file%.
- echo ·
- echo Check your disk, then try the install command again.
- echo ·
- goto exit
- :
- :sb
- :
- set disk=Sounding Board
- set file=sbload.com
- set line=sb1
- goto checkfile
- :sb1
- set file=sb.com
- set line=sb2
- goto checkfile
- :sb2
- set disk=ASAP
- echo sbload>>%s%
- echo sb /k0>>%s%
- echo asap sb lpt3 @y%3 %4 %%1>>%s%
- goto FinishUp
- :
- :talk
- :
- set disk=Echo
- set file=talk.exe
- set line=talk1
- goto checkfile
- :talk1
- set disk=ASAP
- echo talk %2 all>>%s%
- echo asap talk %2 @y%3 %4 %%1>>%s%
- goto FinishUp
- :
- :nokey
- echo Warning: Don't use the port specification for %1.
- goto describe
- :
- :internal
- :
- if %2x==x goto NoKey
- if %2==y goto goodinternal
- if %2==n goto goodinternal
- goto badkey
- :
- :ShowMsg
- cls
- echo ·
- echo Setting up with the following configuration:
- echo ·
- echo Synthesizer: %1
- echo ·
- if %1==doubletalk goto ShowMsg1
- if %1==votalker goto ShowMsg1
- if %1==synphonix goto ShowMsg1
- echo Connected to: %2
- echo ·
- if %3==y echo Computer: XT or older
- if %3==n echo Computer: Newer than an XT
- goto ShowMsg2
- :ShowMsg1
- if %2==y echo Computer: XT or older
- if %2==n echo Computer: Newer than an XT
- :ShowMsg2
- echo ·
- echo If you need to change something about these specifications, press CTRL-C.
- echo ·
- echo Otherwise...
- echo ·
- pause
- cls
- echo ·
- echo ASAP Installation in progress...
- echo ·
- echo Please Wait...
- echo ·
- echo ·
- goto %line%
- :
- :goodinternal
- set line=int2
- goto ShowMsg
- :
- :int2
- if %1==votalker goto VoTalker
- if %1==synphonix goto synphonix
- echo asap @y%2%3%%1>>%s%
- goto FinishUp
- :VoTalker
- set disk=VoTalker
- set file=sonix.com
- set line=vt1
- goto checkfile
- :vt1
- set file=tts.com
- set line=vt2
- goto checkfile
- :vt2
- echo sonix>>%s%
- echo tts>>%s%
- echo asap 3s@y%2%3%%1>>%s%
- goto FinishUp
- :synphonix
- set disk=SynPhonix
- set file=sonixtts.com
- set line=sym2
- goto checkfile
- :sym2
- echo sonixtts>>%s%
- echo asap 3s@y%2%3%%1>>%s%
- goto FinishUp
- :
- :update
- echo Updating to a new version of ASAP...
- echo ·
- echo Please Wait...
- echo ·
- set c=upd
- goto already
- :finishup
- echo cd \>>%s%
- :already
- set disk=ASAP
- set file=asap.com
- set line=brand
- goto checkfile
- :brand
- if not exist brand.com goto lex
- set file=brand.com
- set line=lex
- goto checkfile
- :lex
- set file=asap.lex
- set line=generic
- goto checkfile
- :generic
- echo Copying settings...
- copy *.set %asap%>nul
- copy *.00* %asap%>nul
- echo Copying the text files...
- copy *.txt %asap%>nul
- set file=generic.tbl
- set line=DoneCopying
- goto checkfile
- :DoneCopying
- c:
- CD %ASAP%
- if not exist brand.com goto NoBrand
- echo Inserting your serial number...
- echo ·
- brand.com>nul
- echo done.
- echo ·
- :NoBrand
- cls
- echo ·
- echo Your ASAP is installed.
- echo ·
- echo ·
- if %c%x==updx goto :instruct
- if %1==accent goto accent
- goto NotAccent
- :accent
- echo If your synthesizer requires a driver (like with the Accent-PC), edit
- echo the config.sys file as instructed in the synthesizer manual.
- echo ·
- :NotAccent
- echo To start ASAP, just type the letter S.
- echo ·
- echo If you find that all goes well with the "s" command, you may elect to
- echo add this to your autoexec.bat file so the computer talks as soon as you
- echo turn it on. Some people prefer to use the "s" in case they don't want
- echo speech for some reason. The choice is yours.
- echo ·
- echo If you decide to have the computer come up talking, just type the command:
- echo "echo call s.bat>>c:\autoexec.bat"
- echo Don't forget both of those ">" signs--if you just put one of them, you'll
- echo overwrite what's already in your autoexec.bat, and you don't want to do that.
- GOTO END
- :instruct
- echo To begin using the new version, reboot your computer.
- echo ·
- goto end
- :NOROOM
- ECHO WARNING: YOU'RE OUT OF ENVIRONMENT SPACE.
- ECHO ·
- echo This program can temporarily add more environment...
- echo ·
- echo You may press CTRL-C now if you don't want to do so...
- echo ·
- echo Otherwise...
- echo ·
- pause
- cls
- echo Adding Environment Space...Please Wait...
- ren c:\asap\asap.com oldasap.com>nul
- del c:\asap\asap.com>nul
- c:\command/e:1024 /cinstall %1 %2 %3 %4 %5 %6
- exit
- :END
- :EXIT
- cd \
-