hdf2adf.bat 393 B

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