1@echo off 2setlocal 3 4set dir=%~dps0 5if not exist %dir%cgnsconvert.exe goto notfound 6 7rem -- for path setting to dlls 8if exist %dir%..\cgconfig.bat call %dir%..\cgconfig.bat 9if exist %dir%cgconfig.bat call %dir%cgconfig.bat 10 11set links= 12if "%1" == "-links" ( 13 set links=-l 14 shift 15) 16 17%dir%cgnsconvert -a %links% %1 %2 18goto done 19 20:notfound 21echo cgnsconvert.exe not found in %dir% 22:done 23endlocal 24 25