New Post: Is there a way to find the logged in user's "domain\name" when...
Here's what works for one user and many users (hopefully for the latter) :D private static void CreateSheduledTask1(string targetPathDir) { try { // Get the service on the local machine using...
View ArticleNew Post: System.IO.DirectoryNotFoundException... What?
Does this make any sense to you? System.IO.DirectoryNotFoundException, huh?Exception Type: System.IO.DirectoryNotFoundException Message: The system cannot find the path specified. (Exception from...
View ArticleNew Post: Is there a way to find the logged in user's "domain\name" when...
Glad you figured it out. Just some thoughts on code optimizations:// If just creating a default TaskService (new TaskService()), use TaskService.Instance instead. You can then avoid the 'using' clause....
View ArticleNew Post: System.IO.DirectoryNotFoundException... What?
The error is coming from the RegisterTaskDefinition native method. It likely has something to do with the settings for newTask. To make the syntax simpler, try:Dim tf = If(ts.GetFolder("X"),...
View ArticleNew Post: System.IO.DirectoryNotFoundException... What?
Trying to find out why the code works on some machines and other it doesn't is turning into a real pain in the rear end. Here's my code that I'm using. Like I said, it works on most machines with no...
View ArticleNew Post: Is there a way to find the logged in user's "domain\name" when...
Thank you! And I want to thank you for creating this C# COM wrapper! Great Job!!!!
View ArticleCreated Unassigned: Editor: Trigger right-click menu items do nothing [12418]
When I right-click a trigger in the trigger tab in the Editor UI and select New trigger, edit trigger or delete trigger, nothing happens. Enabling and disabling items with the right-click menu work.
View ArticleNew Post: Exception when modifying task with Editor UI
When I change the task with the Editor UI, after entering my username and password, I get a Exception not handled error message. Stack trace: System.ArgumentException: (27,8):UserId: en...
View ArticleClosed Unassigned: Editor: Trigger right-click menu items do nothing [12418]
When I right-click a trigger in the trigger tab in the Editor UI and select New trigger, edit trigger or delete trigger, nothing happens. Enabling and disabling items with the right-click menu...
View ArticleSource code checked in, #98129
* Fixed context menu bug in Trigger List UI * Cleaned up code using ReSharper * Updated version to 2.5.22
View ArticleNew Post: Exception when modifying task with Editor UI
The error indicates that the native task registration method could not handle the value supplied for the UserId, which is the combination of the username and domain name you supplied in the editor. Can...
View ArticleNew Post: System.IO.DirectoryNotFoundException... What?
Does this happen on systems that are Windows XP only or also on new versions of Windows? Windows XP does not support folders. Also, LogonTriggers are tricky. If specified that way you have, without any...
View ArticleNew Post: Exception when modifying task with Editor UI
1) The format is xxxx\yyyy 2) The system is domain attached 3) I was trying to use a domain account, I think
View ArticleCommented Issue: COMException: Interface not registered (Exception from...
Sample code: implemented with Microsoft.Win32.Scheduler version 1.42but also reproducible with latest trunk; class TaskRepository { private TaskService taskService;private string taskPrefix = "MyTask";...
View ArticleCommented Issue: COMException: Interface not registered (Exception from...
Sample code: implemented with Microsoft.Win32.Scheduler version 1.42but also reproducible with latest trunk; class TaskRepository { private TaskService taskService;private string taskPrefix = "MyTask";...
View ArticleSource code checked in, #98132
* More fixes to Trigger list context menu * Minor updates to TestTaskService
View ArticleSource code checked in, #98133
* Replaced direct dependency references with NuGet packages
View ArticleNew Post: Task Scheduler Wizard - hide first page
Is it possible to hide the first page of the task scheduler wizard? This is the page that allows you to enter the name and description. I've tried to set TaskSchedulerWizard.AvailableWizardPages to...
View ArticleNew Post: Task Scheduler Wizard - hide first page
Thank you for finding this bug. It is actually a bug in the wizard control this project uses, which I also happened to develop. I will update that project and test it, then roll it into this project....
View ArticleNew Post: Help TaskDefinition.Data property
Was wondering if anyone knew how to set the data property and then retrieve it again from a created task. Set TaskDefinition.Data to:TEST After task is created exported XML Data...
View Article