1@echo off 2set InstallPath=C:\ESTII 3 4if NOT EXIST %InstallPath% goto EST_ERROR 5 6:DIREXISTS 7echo Begining Update...... 8echo Backing up the existing files to be replaced.... 9if NOT EXIST %InstallPath%\simfiles\bcm4710.dtl goto C1 10copy %InstallPath%\simfiles\bcm4710.dtl %InstallPath%\simfiles\bcm4710.dtl.old 11:C1 12if NOT EXIST %InstallPath%\bitmap\bcm4710.ini goto C2 13copy %InstallPath%\bitmap\bcm4710.ini %InstallPath%\bitmap\bcm4710.ini.old 14:C2 15if NOT EXIST %InstallPath%\regfiles\MIPS\bcm4710.reg goto C3 16copy %InstallPath%\regfiles\MIPS\bcm4710.reg %InstallPath%\regfiles\MIPS\bcm4710.reg.old 17:C3 18if NOT EXIST %InstallPath%\regfiles\MIPS\bcm4710_r4.reg goto C4 19copy %InstallPath%\regfiles\MIPS\bcm4710_r4.reg %InstallPath%\regfiles\MIPS\bcm4710_r4.reg.old 20:C4 21if NOT EXIST %InstallPath%\targets.def goto C5 22copy %InstallPath%\targets.def %InstallPath%\targets.def.old 23:C5 24 25copy bcm4710.dtl %InstallPath%\simfiles 1>nul 26copy bcm4710.ini %InstallPath%\bitmap 1>nul 27copy bcm4710.REG %InstallPath%\regfiles\MIPS 1>nul 28copy bcm4710_R4.REG %InstallPath%\regfiles\MIPS 1>nul 29copy targets.def %InstallPath% 1>nul 30 31echo BCM4710 files updated sucessfully. 32echo goodbye!!! 33%SystemDrive% 34goto TERMINATE 35 36:EST_ERROR 37echo The directory %InstallPath% does not exist!!! 38echo If you do not have the visionICE software installed 39echo please do so now and then run this batch file. 40echo If the software is installed in another location, please 41echo modify the line that begins with "set InstallPath=" in 42echo the UPDATE.BAT file 43goto TERMINATE 44 45:TERMINATE 46