Files
Bambu_lab/Launch-StudioBridge.bat

36 lines
880 B
Batchfile

@echo off
REM Relaunch minimized if not already
if "%minimized%"=="" (
set minimized=true
start "" /min cmd /c "%~dpnx0"
exit /b
)
REM Launch-StudioBridge.bat - Universal launcher for StudioBridge portable
REM This script works from anywhere, even if the project folder is moved
REM Get the directory where this script is located
set "ROOTDIR=%~dp0"
REM Set the path to the portable-dist folder
set "PORTABLE=%ROOTDIR%portable-dist"
REM Check if StudioBridge.bat exists
if not exist "%PORTABLE%\StudioBridge.bat" (
echo ERROR: Could not find portable-dist\StudioBridge.bat
echo Please make sure the portable-dist folder exists in:
echo %PORTABLE%
pause
exit /b 1
)
REM Change to the portable-dist directory
pushd "%PORTABLE%"
REM Launch StudioBridge.bat
call StudioBridge.bat
REM Return to the original directory
popd