@echo off REM Set the Root path from where the batch files is being called set root=%cd% REM Set the Product Directory of Tricore v6.2r2 set ctc=C:\Program Files (x86)\TASKING\TriCore v6.2r2\ctc\bin If [%1] == [] goto help if %1==insp2ctc goto insp2ctc if %1==ctc2insp goto ctc2insp goto error :insp2ctc cd %cd% REM Deleting the Inspector *.exe del astc.exe del cctc.exe del cptc.exe del ctc.exe del ltc.exe echo. copy astc_orig.exe astc.exe copy cctc_orig.exe cctc.exe copy cptc_orig.exe cptc.exe copy ctc_orig.exe ctc.exe copy ltc_orig.exe ltc.exe echo. echo TriCore C compiler executables are selected cd %root% goto end :ctc2insp cd %cd% REM Deleting the Compiler *.exe del astc.exe del cctc.exe del cptc.exe del ctc.exe del ltc.exe echo. REM Copying the insp_ctc.exe copy insp_astc.exe astc.exe copy insp_cctc.exe cctc.exe copy insp_cptc.exe cptc.exe copy insp_ctc.exe ctc.exe copy insp_ltc.exe ltc.exe echo. echo Inspector Tool executables are selected cd %root% goto end :error echo. echo Wrong argument, please use insp2ctc or ctc2insp :help echo. echo Usage: Select [insp2ctc^|^ctc2insp] echo Example1: Select ctc2insp --^>^ Activates the Inspector Tool executables echo Example2: Select insp2ctc --^>^ Activates the TriCore C compiler executables cd %root% goto end :end