monteverdi.bat 546 Bytes
Newer Older
1 2 3
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Monteverdi launcher to set up proper environment
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
4 5
@echo off
setlocal
6 7

:: Get the directory of the current script
8
set CURRENT_SCRIPT_DIR=%~dp0
9

10 11
:: Setup environment
call %CURRENT_SCRIPT_DIR%otbenv.cmd
12 13

:: Set current dir to HOME dir because Monteverdi generates temporary files and need write access
14
cd %HOMEDRIVE%%HOMEPATH%
15 16

:: Start Monteverdi
17 18 19
start "Monteverdi Viewer" /B "%CURRENT_SCRIPT_DIR%bin\monteverdi.exe" %*

endlocal