Do you need to list down the Task Schedulers in your machine from your Delphi App programmatically? How do enumerate among the Task Schedulers quickly? Don’t know what to do? Don’t worry. MiTec’s System Information Management Suite helps to enumerate the Task Schedulers, we will learn how to use the MiTeC_TaskScheduler_TLB’s TTSTasks in this blog post.
Platforms: Windows.
Installation Steps:
You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.
- Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
- Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? Click yes and continue.
- It will download the plugin and installs it. Once installed Click Restart now.
How to run the Demo app:
- Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi23
- Open the TS project in RAD studio 10.4.1 compile and Run the application.
- This Demo App shows how to list down the task schedulers created in your machine, enumerate among them and access its properties.
Components used in MSIC TS Demo App:
- TListView to show the Task schedulers properties.
Implementation Details:
- A variable is created tslist of TTSTasks. Add list of Task schedulers to tslist using GetTaskList. Loop through the tslist count and add each task scheduler item to the list view. List down the properties such as Name, Path, Description, Author, Image, Version etc. of each Task Scheduler to list view item.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
procedure TwndMain.FormCreate(Sender: TObject); var i: Integer; tslist: TTSTasks; begin GetTaskList(tslist); for i:=0 to High(tslist) do with List.Items.Add do begin Caption:=tslist[i].Path; tslist[i]. SubItems.Add(tslist[i].ImagePath+' '+tslist[i].Args); SubItems.Add(tslist[i].Author); end; end; |
- Display the Task Scheduler properties as shown below.
It’s that simple to enumerate Task Schedulers and list its properties for your application. Use this MiTeC component suite and get the job done quickly.
You can Quickly Enumerate Windows Task Schedulers With Flexible Component Suite Using Delphi’s IDE Software. Begin developing in C++ or Delphi environments right away.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition