The script stopped launching after moving the folder, so I fixed it.

This commit is contained in:
Mori Naoyuki
2026-02-15 09:35:14 +09:00
parent 40f6ddc059
commit 3ce98899fb
+8 -1
View File
@@ -20,7 +20,14 @@ REM start_bambuddy.bat reset Clean all & fresh start
REM set PORT=9000 & start_bambuddy.bat Change port
REM ============================================
set "ROOT=%~dp0"
REM If launched from the "install" folder, go up one level; otherwise use current directory.
for %%I in ("%CD%") do set "CURRENT_DIR_NAME=%%~nxI"
if /I "%CURRENT_DIR_NAME%"=="install" (
set "ROOT=%CD%\.."
cd ..
) else (
set "ROOT=%CD%"
)
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
set "PORTABLE=%ROOT%\.portable"