Create Scheduled Tasks With C#

preview_player
Показать описание
A short video showing how you can easily create scheduled tasks on a windows machine from C# programmatically, an example usage could be an auto updater or maybe your application registers itself to auto launch alongside the machine as an administrator.

Let me know in the comments if you have suggestions for videos you'd like to see me make in the future.

Рекомендации по теме
Комментарии
Автор

Great Video! It really helped me build an automatic task directly from C# and to delete it, when i could not set worker services to work! Thanks!

jps
Автор

Thank you very much!!! this video helped me a lot :)

ajitsm
Автор

Hello friend, your video was the most useful I found about TaskScheduler. But I have a really crazy problem here, maybe you can help me: How can I set "When executing the task, use the following user account:" just "Users"? Currently I can put the current user but that's not what I want, I want the task to be independent of the logged in user, something I can do manually, but do you know of any way to do this via C#? If you can help me, thank you in advance!


If you can help me and need details, I am at your disposal.

gustavofernandes
Автор

It helped me a lot. Thank you!
But do you know how I can change the max execution time limit to endless? I can't find the property. Sure I find it, but only the Timespan for the time not the bool for the property to disable it

pascal
Автор

Hello my friend,
very nice video lesson, Thank you
can you please write here the C# code for insert also the task trigger date and time
along creating the new Task?
I want to create 2 tasks and on deferent time

rikotec
Автор

How to change the existing task trigger date and time .It suppose to run only once.

srinivasululakku
Автор

Good Day .
Is the TaskScheduler library safe to use?. Is it an official Microsoft library?
Regards,
AverageGuy

all_handles_are_taken_
Автор

Hello, I managed to create the folder but failed to create the task.
It keeps giving me this error: (35, 4):Task:
I know it has something to do with access credential or something, but I still got nothing.
Do you know how to make this work?

achmedycreedo