@ECHO OFF PUSHD %~dp0 rename %LOCALAPPDATA%\view3dscene\view3dscene.conf view3dscene.conf.bak xcopy /y X3D\view3dscene\appdata\view3dscene.conf "%LOCALAPPDATA%\view3dscene\" FlashpointSecurePlayer view3dscene "%~1" IF %ERRORLEVEL% EQU -2 ( ECHO MsgBox "You cannot run multiple instances of Flashpoint Secure Player. Please close other Flashpoint games and animations that are open." > %TMP%\TMP.VBS WSCRIPT /nologo %TMP%\TMP.VBS DEL %TMP%\TMP.VBS ) del "%LOCALAPPDATA%\view3dscene\view3dscene.conf" rename %LOCALAPPDATA%\view3dscene\view3dscene.conf.bak view3dscene.conf POPD