@echo off rem ========================================================================== rem BT411 -- package tonight's logs into ONE Discord-attachable zip. rem Double-click me after a playtest. The zip lands on your DESKTOP as rem BTLOGS__.zip -- attach that one file in Discord. rem Collects: every session log, matchlog, and launch breadcrumb. Nothing rem is deleted or modified; this only makes a copy. rem ========================================================================== cd /d "%~dp0" powershell -NoProfile -ExecutionPolicy Bypass -Command ^ "$d = Get-Date -Format yyyyMMdd_HHmm;" ^ "$out = Join-Path ([Environment]::GetFolderPath('Desktop')) (\"BTLOGS_{0}_{1}.zip\" -f $env:COMPUTERNAME, $d);" ^ "$files = Get-ChildItem -Path 'content\*.log','content\lastrun_*.txt','content\matchlog_*.txt','content\cdb_*.txt' -ErrorAction SilentlyContinue | Where-Object { $_.LastWriteTime -gt (Get-Date).AddHours(-36) };" ^ "if (-not $files) { Write-Host 'No logs found -- run me from the BT411 folder (next to the content directory).'; exit 1 }" ^ "Compress-Archive -Force -Path $files.FullName -DestinationPath $out;" ^ "Write-Host ('Wrote ' + $out + ' (' + $files.Count + ' files, ' + [math]::Round((Get-Item $out).Length/1MB,1) + ' MB)');" echo. echo Attach the BTLOGS zip from your Desktop in Discord. Thanks! pause