kaikai_test/install-tasks.bat
2026-05-07 16:31:56 +08:00

21 lines
607 B
Batchfile

@echo off
setlocal
cd /d "%~dp0"
set "LOG=%~dp0install-tasks.log"
echo Installing Windows scheduled tasks...
echo Installing Windows scheduled tasks... > "%LOG%"
echo Project: %CD% >> "%LOG%"
echo. >> "%LOG%"
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\install-windows-tasks.ps1" >> "%LOG%" 2>&1
type "%LOG%"
echo.
echo If there is no error above, tasks are installed:
echo - FeishuDailyReport-Reminder runs daily at 18:00 and skips holidays
echo - FeishuDailyReport-Summary runs daily at 19:00 and skips holidays
echo.
echo If there is an error, send Codex a screenshot.
pause