grass-run.bat 438 B

123456789101112131415161718192021222324252627
  1. @echo off
  2. rem Batch file to launch GRASS commands
  3. rem Change console title to name of module
  4. title GRASS: %1
  5. rem Force command line startup mode
  6. set GRASS_UI_TERM=1
  7. rem Run command
  8. "%*"
  9. title GRASS: %1 Done.
  10. if %errorlevel% == 1 goto error
  11. rem Pause for 2 seconds to allow user to read any output
  12. ping 127.0.0.1 -n 3 -w 1000 >NUL:
  13. :end
  14. exit %errorlevel%
  15. :error
  16. echo -----
  17. echo ERROR: %1 exited abnormally.
  18. echo -----
  19. pause
  20. goto end