Multiple Account/Logins in Bambu Studio and Bambu Handy

I optimized the script, so it is just one .bat file.

@echo off
setlocal

REM === Ensure Bambu Studio is not running ===
taskkill /IM BambuStudio.exe /F >nul 2>&1
timeout /t 1 >nul

cd /d %APPDATA%

echo.
echo === Bambu Studio Profile Switcher ===
echo.

REM === Detect current active profile ===
set CURRENT=UNKNOWN
set TARGET=

if exist BambuStudio (
    if exist BambuStudioPriv (
        set CURRENT=WORK
    ) else if exist BambuStudioWork (
        set CURRENT=PRIVATE
    ) else (
        set CURRENT=UNKNOWN
    )
) else (
    set CURRENT=NONE
)

echo Current profile: %CURRENT%
echo.

REM === Ask user ===
set /p CHOICE=Switch profile? (Y/N): 

if /I "%CHOICE%" NEQ "Y" (
    echo.
    echo Aborted.
    timeout /t 2 >nul
    exit /b
)

echo.
echo Switching profile...
echo.

REM === Switch logic ===

if "%CURRENT%"=="PRIVATE" (
    if exist BambuStudio ren BambuStudio BambuStudioPriv
    if exist BambuStudioWork ren BambuStudioWork BambuStudio
    set TARGET=WORK
)

if "%CURRENT%"=="WORK" (
    if exist BambuStudio ren BambuStudio BambuStudioWork
    if exist BambuStudioPriv ren BambuStudioPriv BambuStudio
    set TARGET=PRIVATE
)

if "%CURRENT%"=="NONE" (
    if exist BambuStudioPriv (
        ren BambuStudioPriv BambuStudio
        set TARGET=PRIVATE
    )
)

if "%CURRENT%"=="UNKNOWN" (
    echo WARNING: Unknown state. No changes made.
    timeout /t 2 >nul
    exit /b
)

REM === Final message ===
echo.
echo Successfully switched to %TARGET% profile.
echo Closing in 2 seconds...

timeout /t 2 >nul

endlocal

It also displays the current profile and asks if you want to change or not. Working nicely.

Small tutorial:

You need 3 folders in User/AppData/Roaming.

BambuStudio

BambuStudioPriv

BambuStudioWork

Your current data is stored in “BambuStudio”, move that to BambuStudioPriv.

If you now start Bambu Studio, you can login with your work account and the new data is stored in “BambuStudio” again. Move that to BambuStudioWork.

Now you’re got an empty BambuStudio folder, and different account data in BambuStudioPriv and BambuStudioWork. You can now switch between both accounts by using my script.