Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all 2206 articles
Browse latest View live

New Post: Task Sheduler Sinlge page web application

$
0
0
1) I would say you'll have to convert strings to the enum or date or TimeSpan using the appropriate parse or Convert methods.
2) Reflection (Type.GetProperty) and recursion (get type of property and recurse if a class).

New Post: How to set unset Do not store password. The task will only have access to local computer resources.

$
0
0
Trying to create a task. And i need to uncheck the
check box Do not store password. The task will only have access to local computer resources.
which is always checked for me. Here is the code
            // 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.Principal.RunLevel = TaskRunLevel.Highest;
                td.Principal.LogonType=TaskLogonType.ServiceAccount;
                 td.RegistrationInfo.Description = "MyTask";

                // Create a trigger that will fire the task at this time every other day
                var dailytrigger = new DailyTrigger { DaysInterval = 1 };
                var timespan = new TimeSpan(0, 0, 5, 0);
                dailytrigger.SetRepetition(timespan, TimeSpan.Zero);
                td.Triggers.Add(dailytrigger);
                td.Settings.Compatibility = TaskCompatibility.V2_1;

                var commandParam = GetPowershellParams();

                td.Actions.Add(new ExecAction("Powershell", commandParam, null));



                // Register the task in the root folder
                ts.RootFolder.RegisterTaskDefinition(@"My Task", td, TaskCreation.CreateOrUpdate, username,
                    password);
             
            }

New Post: How to set unset Do not store password. The task will only have access to local computer resources.

New Post: on button (TaskEditDialog) is blank

$
0
0
when the TaskEditDialog is showed the "OK" button has no text, is a blank button. On cancel button instead is written "cancel" correctly
did i missed something? the problem can be related to the interationalization/culture setting? i did no set nothing
TaskService ts = new TaskService();
TaskEditDialog dlg = new TaskEditDialog(ts.RootFolder.Tasks[0], true, true);
dlg.ShowDialog(this);
as note aside:
i'm using TaskSchedulerEditor 2.3.1
the "2.3.2" doesn't work on my machine

i get this error:
Parameter name: Locale specific information about supported Operating Systems is insufficient
on the line
TaskEditDialog dlg = new TaskEditDialog(ts.RootFolder.Tasks[0], true, true);
this message makes me think that something about "language/culture" is missing, so this could explain why the "ok button" is blank
can you help me to investigate?
thanks a lot

New Post: on button (TaskEditDialog) is blank

$
0
0
Which locale are you using as the default for your app?

New Post: on button (TaskEditDialog) is blank

$
0
0
my default is: "it-IT"

if i set "en-US", or "fr-FR" everything works(the 2.3.2 as well).
So i have not the "it" language installed
Is it something related to the "Windows Language pack" or is it a resource of your library?

New Post: return a value from an .exe to a task

$
0
0
is it possible return a value during the "running" state of scheduled task from an .exe?

A sort of notification (the precentage of completion e.g.)...
Does exist a way to do that in order to get that value into the Task object?

New Post: on button (TaskEditDialog) is blank

$
0
0
It must be a bug with the Italian language resources for the library. Let me do some testing today and I'll see if I can come up with a fix.

New Post: return a value from an .exe to a task

$
0
0
There is not a way to expose anything from an .exe except for the final result code. If you need to expose in-process information, check out the COMHandlerAction which allows you to write custom code that gets run in-process as a COM object to the Task Scheduler. In the Downloads section, there is a project template to help you write one.

New Post: return a value from an .exe to a task

$
0
0
thank you to have driven me on the right path :-)

New Post: on button (TaskEditDialog) is blank

New Post: return a value from an .exe to a task

$
0
0
i took a look at the interface "ITaskHandler" and it has only these methods:

-Pause: Called to pause the COM handler.
-Resume: Called to restart the COM handler.
-Start: Required. Called to start the COM handler.
-Stop: Required. Called to stop the COM handler.

i would need something that should be fired continuously, a sort of "notify" event.
Do you think is it possible using any "workaround" to simulate this behaviour?
any ideas?

New Post: return a value from an .exe to a task

New Post: Why does build create de-DE, fr, it, zh-CN folders? Is there a build option to prevent this?

$
0
0
Why does build create de-DE, fr, it, zh-CN folders, each with their own version of Microsoft.Win32.TaskScheduler.resources.dll.

I am guessing this has something to do with support for other languages besides English (German, French, Italian, and Chinese??), but I'm wondering whether there is a build option to prevent the creation of these folders?

Thank you in advance.

New Post: on button (TaskEditDialog) is blank

$
0
0
I have updated the code that is causing the blank button and the exception. You can download the code and build a private version to complete your tests. I should be able to release 2.3.3 (with all these fixes) officially in the next couple of days once I complete testing.

Source code checked in, #95823

Source code checked in, #95824

New Post: on button (TaskEditDialog) is blank

$
0
0
Great!
i'll update it when you'll pubblish the next release.
Tks

New Post: Why does build create de-DE, fr, it, zh-CN folders? Is there a build option to prevent this?

$
0
0
There is not a build option to prevent them, but you do not have to distribute those folders if you don't need the localization.

New Post: Why does build create de-DE, fr, it, zh-CN folders? Is there a build option to prevent this?

$
0
0
Thank you for the reply. I wrote a set of commands to run as a post-build step to delete them.
Viewing all 2206 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>