Streamingle_URP/Streamdeck/view-logs.bat
2025-10-28 00:02:17 +09:00

46 lines
1.1 KiB
Batchfile

@echo off
chcp 65001 >nul
echo ========================================
echo StreamDock Plugin Log Viewer
echo ========================================
echo.
echo Opening StreamDock log directory...
echo.
set LOG_DIR=%APPDATA%\Hotspot\StreamDock\logs
if exist "%LOG_DIR%" (
echo Log directory found: %LOG_DIR%
echo.
echo Recent log files:
dir /B /O-D "%LOG_DIR%\*.log" 2>nul | findstr /N "^"
echo.
echo Opening log directory in Explorer...
explorer "%LOG_DIR%"
echo.
echo Opening latest log file in Notepad...
for /f "delims=" %%i in ('dir /B /O-D "%LOG_DIR%\*.log" 2^>nul') do (
start notepad "%LOG_DIR%\%%i"
goto :done
)
) else (
echo WARNING: Log directory not found!
echo Checking alternative locations...
echo.
set ALT_LOG=%LOCALAPPDATA%\Hotspot\StreamDock\logs
if exist "!ALT_LOG!" (
echo Found at: !ALT_LOG!
explorer "!ALT_LOG!"
) else (
echo No logs found. StreamDock may not have been launched yet.
)
)
:done
echo.
echo Press any key to exit...
pause >nul