Provide the location of the environment file to be used in the variable
ENV_FILE_LOCATION.
Ensure that you do not enter any extra spaces at the end of each line.
A sample mxlaunchCATIAV5_Sample.bat for Windows 64 bit is,
@set CATIA_INSTALL_DIR=C:\Program Files\Dassault Systemes\B18
@set ENV_FILE_NAME=CATIA.V5R18.B18
@set ENV_FILE_LOCATION=C:\Documents and Settings\All Users\Application
Data\DassaultSystemes\CATEnv
@REM Please do not edit below this line
@IF "%2"==""-action:connect"" (
start "CATIA V5" "%CATIA_INSTALL_DIR%\ win_b64\code\bin\CATSTART.exe"
-run "CNEXT.exe -e V6CATIAConnectHdr" -env "%ENV_FILE_NAME%" -direnv
"%ENV_FILE_LOCATION%"
)
@IF "%2"==""-action:checkout"" (
start "CATIA V5"
"%CATIA_INSTALL_DIR%\ win_b64\code\bin\CATSTART.exe" -run "CNEXT.exe
-e
V6CATIASilentCheckoutCmdHdr" -env "%ENV_FILE_NAME%" -direnv
"%ENV_FILE_LOCATION%"
)
echo returned