batch file - Install fails for dBASE III Administrator, "goto was unexpected" -


i novice programmer/it guy @ family owned real estate finance business. long story short, created dbase iii based application system track customer accounts 25-30 years ago. cost change modern system astronomical , since can code reasonable efficiency keep it. right, using single user version on separate workstations. want install dbase administrator , change things on networked environment. figured going little out of depth able work through it. running on windows xp system, no internet connection, land together.

i got install disk image vetusware. mounted image via virtual floppy. in command prompt navigate disk , follow instructions manual:

  1. insert system disk #1 in drive a.
  2. change default drive typing a:[return]

so far good...i have prompt.

then type: a> install c: dba

i type "install c: dba", launched "install.bat" found on disk, reports "goto unexpected @ time." , returns me prompt.

i post batch file text below. upon execution displays top bit of "echoed" text finishing "...previous version of dbase." next line "goto unexpected..."

it seems wrong install batch file , nothing doing... know that batch file error , not error within program. odd, program mentions dba.com , found on of disks... or guidance can provide appreciated.

thanks lot,

chris

    echo off     cls     echo      echo                dbase iii plus version 1.1     echo                  hard disk installation      echo      echo can copy  dbase iii plus   hard disk  following     echo these  installation  instructions.   can   use  these     echo instructions install dbase administrator.     echo      echo if want  save  installed version of dbase,     echo uninstall using version's uninstal program.     echo      echo if choose not  save  previous version,  install dbase     echo iii plus version 1.1 same directory.  auto-     echo matically erase previous version of dbase.     echo      if "%1==" goto helpinst     %%f in (c:,c:,d:,d:,e:,e:,f:,f:,g:,g:,h:,h:,y:,y:) if %1.==%%f. goto start     %%f in (i:,i:,j:,j:,k:,k:,l:,l:,m:,m:,n:,n:,o:,o:,p:,p:,z:,z:) if %1.==%%f. goto start     %%f in (q:,q:,r:,r:,s:,s:,t:,t:,u:,u:,v:,v:,w:,w:,x:,x:) if %1.==%%f. goto start     goto baddrive     :start     if "==%2" goto dbase     if %2.==dba. goto dba     if %2.==dba. goto dba     goto helpinst     :dbase     echo dbase iii plus installed on drive %1     echo      yn y n 30 want continue (y/n)?     if errorlevel 1 goto dbase1     goto end     :dbase1     if exist dbase.lod goto id     if exist %1dbase.exe goto errexist     if exist %1dba.com goto errext     if not exist id.exe goto miss     %1     a:id /s     a:     echo copying files drive %1 . . .     echo      copy dbase.exe %1     copy dbaseinl.ovl %1     copy dbase.msg %1     if not exist %1config.db copy config.db %1     if not exist %1config.sys copy config.sys %1     :sys2     echo      echo insert dbase iii plus system disk #2 in drive a.     echo      pause     if not exist dbase.ovl goto sys2     echo      echo copying files drive %1 . . .     echo      copy dbase.ovl %1     copy help.dbs %1     copy assist.hlp %1     if not exist %1dbase.ovl goto errdbase     if not exist %1dbase.exe goto errdbase     if not exist %1dbase.msg goto errdbase     if not exist %1dbaseinl.ovl goto errdbase     echo      echo dbase iii plus has been installed.     goto end     :dba     echo dbase administrator installed on drive %1     echo      yn y n 30 want continue (y/n)?     if errorlevel 1 goto ad1     goto end     :ad1     if exist dba.lod goto getsys1     if exist %1dba.com goto errext     if exist %1dbase.exe goto errexist     if not exist dbaseinl.ovl goto getsys1     echo      echo copying files drive %1 . . .     echo      copy help.dbs %1     echo      :ad2     echo      echo insert administrator #1 disk in drive     echo      pause     echo      if not exist dba.lod goto ad2     :ad3     if exist installh.sg3 goto initdba     if not exist idlan.exe goto miss     %1     a:idlan /m     a:     installh p=a t=%1     if errorlevel 1 goto errdba     echo      copy dba.lod %1\dbnetctl.300     copy dbase.msg %1     copy protect.exe %1     copy assist.hlp %1     echo      :ad4     echo      echo insert administrator #2 disk in drive     echo      pause     echo      if not exist dba.ovl goto ad4     echo copying files drive %1 . . .     echo      copy dba.ovl %1     copy adduser.com %1     echo      echo dbase administrator has been installed     echo       echo 1 user may run dbase administrator.  add more users,     echo run  adduser program.  adduser  program located in     echo directory in dbase administrator installed.     echo      goto end     :helpinst     echo  entered command incorrectly.  correct syntax is:     echo      echo    "install <drive:>"      install dbase iii plus.     echo      echo    "install <drive:> dba"      install dbase administrator.     echo      echo install aborted.     goto end    :errexist     echo      echo  dbase iii plus exists in destination drive.     goto errunst    :errext     echo      echo  dbase administrator exists in destination drive.     :errunst     echo      echo install aborted.     goto end     :baddrive     echo       echo invalid drive letter specified.  install aborted.     goto helpinst     :errdbase     echo       echo dbase iii plus not installed.  install aborted.     goto end     :miss     echo       echo system disk has missing files.  install aborted.     echo      goto delfile     :id     echo       echo dbase iii plus has not been identified.  please run id.     echo      goto end     :initdba     echo       echo dbase administrator has not been identified.  please run idlan.     echo      goto delfile     :getsys1     echo       echo please use dbase iii plus system disk #1 run installation.     echo install aborted.     echo      goto end     :errdba     echo       echo dbase administrator installation has been aborted.     echo      :delfile     if exist %1help.dbs del %1help.dbs     :end 

your problem install script written ms-dos command interpreter (command.com) , isn't compatible windows xp command interpreter (cmd.exe). specific problem xp interpreter gives special meaning double quote characters (") while ms-dos interpreter doesn't. causes following line interpreted differently, error, under xp:

if "%1==" goto helpinst 

i don't recommend trying "fix" script windows xp compatible. aside fact there number of lines have fix, there's simpler solution. use ms-dos command interpreter. can entering command @ command prompt. follow instructions normal. example:

command  a: install c: dba 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -