Пакетный скрипт для отправки пользовательских уведомлений в зависимости от срока и владельца

Вот пример пакетного скрипта, который может отправлять персонализированные уведомления в зависимости от срока и владельца:

@echo off
setlocal
REM Set the current date in the desired format
for /f "tokens=1-3 delims=/ " %%a in ('date /t') do set "current_date=%%c-%%a-%%b"
REM Set the due date and owner for each notification
REM Replace the placeholders with your actual data
set "notification1_due_date=2023-12-25"
set "notification1_owner=John"
set "notification2_due_date=2023-12-26"
set "notification2_owner=Jane"
REM Compare the due dates with the current date and send notifications if they match
if "%notification1_due_date%"=="%current_date%" (
    echo Sending notification to %notification1_owner% for Task 1
    REM Add your code to send the notification for Task 1
)
if "%notification2_due_date%"=="%current_date%" (
    echo Sending notification to %notification2_owner% for Task 2
    REM Add your code to send the notification for Task 2
)
REM Add more if statements for additional notifications
endlocal

Этот пакетный скрипт сравнивает текущую дату со сроками выполнения каждого уведомления и отправляет соответствующие уведомления, если они совпадают. Вы можете настроить его, добавив дополнительные уведомления и изменив действия, выполняемые при обнаружении совпадения.