Skip to content

Instantly share code, notes, and snippets.

@masari
Created November 5, 2025 21:29
Show Gist options
  • Save masari/56300578e9d28d3a81d73338dcb09375 to your computer and use it in GitHub Desktop.
Save masari/56300578e9d28d3a81d73338dcb09375 to your computer and use it in GitHub Desktop.
@echo off
taskkill /f /IM baretail.exe /t > NULL 2>&1
set "baretail_exe=C:\tools\baretail.exe"
set "logdir=C:\Orchestrade\914_Patch2\buildCore\Logs"
set /a n=0
del "%logdir%\*.log" /t > NULL 2>&1
set /a FileCount=0
for /f %%a in ('DIR "%logdir%" /A:-D /B ^| FIND /C /V ""') do set "FileCount=%%a"
SETLOCAL ENABLEDELAYEDEXPANSION
for %%f in ("!logdir!\*.log") do (
start "" "!baretail_exe!" --tile-window-count "!FileCount!" --tile-window-index !n! "%%f"
set /a n+=1
)
ENDLOCAL
pause
taskkill /f /IM baretail.exe /t > NULL 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment