32 lines
920 B
Batchfile
32 lines
920 B
Batchfile
@echo off
|
|
rem recordatorio.cmd — Comando corto para gestionar recordatorios con message box.
|
|
rem Uso:
|
|
rem recordatorio listar todos los recordatorios
|
|
rem recordatorio done <id> marcar como terminado (ya no sale)
|
|
rem recordatorio add "texto" --hora 14:00 [--fecha diario|YYYY-MM-DD]
|
|
rem recordatorio test <id> mostrar el cuadro ahora mismo
|
|
rem recordatorio sync crear recordatorios desde pendientes.json (tareas con hora)
|
|
set PY=python
|
|
set SCR=C:\Users\juanm\Documents\GitHub\INFRAESTRUCTURA\scripts\recordatorios_msgbox.py
|
|
if "%~1"=="" goto listar
|
|
if /i "%~1"=="done" (
|
|
%PY% "%SCR%" --done %2
|
|
goto fin
|
|
)
|
|
if /i "%~1"=="add" (
|
|
%PY% "%SCR%" --add %2 --hora %3 --fecha %4
|
|
goto fin
|
|
)
|
|
if /i "%~1"=="test" (
|
|
%PY% "%SCR%" --test %2
|
|
goto fin
|
|
)
|
|
if /i "%~1"=="sync" (
|
|
%PY% "%SCR%" --sync
|
|
goto fin
|
|
)
|
|
if /i "%~1"=="listar" goto listar
|
|
:listar
|
|
%PY% "%SCR%" --listar
|
|
:fin
|