Forum > Windows

How i can manage taskmanager to schedule app runs applications

(1/1)

eldonfsr:
Hi it's possible from app create schedule and add this schedules to taskmanager...

I know i can create that on task manager....
 

Leledumbo:
I believe the API is exposed in Windows unit, or one of the winunits-xxx packages. Unfortunately, unless someone else already does so, you have to read and understand in C++ as that's what MS used in their documentation. Starting page is here, while an example is here, you can just replace the notepad with whatever you want and change the schedule accordingly.

Thaddy:

--- Quote from: Leledumbo on June 06, 2022, 06:16:30 pm --- C++

--- End quote ---
No it is plain C.

bobby100:
https://forum.lazarus.freepascal.org/index.php?topic=40821.0

or create XML files for task scheduler and register the task:
https://docs.microsoft.com/en-us/windows/win32/taskschd/time-trigger-example--xml-

Leledumbo:

--- Quote from: Thaddy on June 06, 2022, 08:59:14 pm ---
--- Quote from: Leledumbo on June 06, 2022, 06:16:30 pm --- C++

--- End quote ---
No it is plain C.

--- End quote ---
No, it's a C compliant C++. That's the reason why the documentation mentions C++ consistently instead of C or even C/C++ (well, this one still appears sometimes, but maybe an overlook or old writing).

Navigation

[0] Message Index

Go to full version