@echo off
cd /d "%~dp0"
echo ==== iges.exe (no args) usage ====
"C:\Program Files\Siemens\NX2506\NXBIN\iges.exe" 2>&1
echo.
echo ==== iges.exe: export KC_master.prt to IGES ====
"C:\Program Files\Siemens\NX2506\NXBIN\iges.exe" "KC_master.prt" o="E3_export.igs" l="E3_export.log"
echo exit code = %ERRORLEVEL%
echo.
if exist "E3_export.igs" (
  dir "E3_export.igs"
) else (
  echo E3_export.igs NOT created
)
echo.
if exist "E3_export.log" (
  findstr /C:"solid" /C:"Total" /C:"Body" "E3_export.log"
) else (
  echo no log file
)
