Task Scheduler Managed Wrapper |
![]() ![]() |
Task Scheduler Managed Wrapper |
| Thema |
|---|
06.03.2012, 18:01
Beitrag
#1
|
|
|
|
ZITAT his project provides a single assembly wrapper for the 1.0 and 2.0 versions of Task Scheduler found in all Microsoft operating systems post Windows 98. It simplifies the coding, aggregates the multiple versions, provides an editor and allows for localization support. Microsoft introduced version 2.0 (internally version 1.2) with a completely new object model with Windows Vista. The managed assembly closely resembles the new object model, but allows the 1.0 (internally version 1.1) COM objects to be manipulated. It will automatically choose the most recent version of the library found on the host system. The project was written in C#, but works with any .NET language including scripting languages. There is a help file included with the download that provides an overview of the various classes. Below is a brief example of how to use the library from C#. QUELLTEXT using System; using Microsoft.Win32.TaskScheduler; class Program { static void Main(string[] args) { // Get the service on the local machine using (TaskService ts = new TaskService()) { // Create a new task definition and assign properties TaskDefinition td = ts.NewTask(); td.RegistrationInfo.Description = "Does something"; // Create a trigger that will fire the task at this time every other day td.Triggers.Add(new DailyTrigger { DaysInterval = 2 }); // Create an action that will launch Notepad whenever the trigger fires td.Actions.Add(new ExecAction("notepad.exe", "c:\\test.log", null)); // Register the task in the root folder ts.RootFolder.RegisterTaskDefinition(@"Test", td); // Remove the task we just created ts.RootFolder.DeleteTask("Test"); } } } Release 1.8.1 Releasenotes + Download: http://taskscheduler.codeplex.com/releases/view/83241 -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
19.05.2012, 18:43
Beitrag
#2
|
|
|
|
Release 1.8.2
ZITAT Release Notes Many bug fixes and better localization support (adding Chinese) since the 1.7.1 release. See Source Code for full details of changes. Also, all assemblies are now strongly named. Download: http://taskscheduler.codeplex.com/releases/view/83241 -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
03.07.2012, 21:09
Beitrag
#3
|
|
|
|
Release 1.8.3
ZITAT Release Notes Many bug fixes, better localization support (adding Chinese), and Task Scheduler 1.0 support for XML since the 1.7.1 release. Potentially Breaking Changes There is a remote chance that some of the changes in this release may break your code. Please check if you have code that: Makes specific assumptions about the underlying Kind (Utc, Local) of DateTime values for Trigger.StartBoundary and Trigger.EndBoundary. Provides username, domain and password for connecting to remote servers. You must have all three as non-null, valid strings or all null. V1 only: Assumes Task.State property does not provide the dynamic state of the task V1 only: Assumes Task.Enabled property does not take effect until re-registering the task. (1.8.2) Task.NextRunTime. For Task Scheduler 2.0, the return value was Dec 30, 1899 if there were no future run times. For 1.0, that value would have been DateTime.MinValue. Now all versions will return DateTime.MinValue if there are no future run times. While this is different from the native 2.0 library, it was deemed more appropriate to have consistency between the two libraries and with other .NET libraries. (1.8.3) A number of the properties and methods related to reading and writing Xml that once threw NotV1SupportedException will now process the Xml. Download: http://taskscheduler.codeplex.com/releases/view/83241 -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
18.09.2012, 19:11
Beitrag
#4
|
|
|
|
Release 1.9 Beta
ZITAT Release Notes Many bug fixes, full support for Windows 7 and Windows 8 additions to core library, and an enhanced editor to allow editing of all properties, since the 18.3 release. See Source Code for full details of changes. Download: http://taskscheduler.codeplex.com/releases/view/94616 -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
30.10.2012, 19:13
Beitrag
#5
|
|
|
|
Release 1.9
ZITAT Release Notes * Fixed problem with warnings having title and message strings mixed * Fixed problem with account validation when Principal.ProcessTokenSidType * Hid new tabs by default Download: http://taskscheduler.codeplex.com/releases/view/94616 -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
30.11.2012, 20:14
Beitrag
#6
|
|
|
|
Release 1.9.2
ZITAT Release Notes Many bug fixes, full support for Windows 7 and Windows 8 additions to core library, and an enhanced editor to allow editing of all properties, since the 1.8.3 release. See Source Code for full details of changes. Download: http://taskscheduler.codeplex.com/releases/view/94616 -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
11.02.2013, 19:53
Beitrag
#7
|
|
|
|
Release 1.9.3
Download: http://taskscheduler.codeplex.com/releases/view/94616 http://nuget.org/List/Packages/TaskScheduler -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
21.03.2013, 19:09
Beitrag
#8
|
|
|
|
Release 1.9.4
Download: http://taskscheduler.codeplex.com/releases/view/94616 http://nuget.org/List/Packages/TaskScheduler -------------------- "A programmer is just a tool which converts caffeine into code" that's the reason why I can't sleep at night *g*
|
|
|
|
![]() ![]() |
| Vereinfachte Darstellung | Aktuelles Datum: 24.05.2013, 20:46 |