Python Forum
How to create a task/import a task(task scheduler) using python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to create a task/import a task(task scheduler) using python (/thread-32428.html)



How to create a task/import a task(task scheduler) using python - Tyrel - Feb-09-2021

Can someone please help me.

im using python 3.6 and windows 10 64bit.

I am trying to create a task in task scheduler that runs at log on using python or a way to import a task to task scheduler using python as you can export tasks. Thank you


RE: How to create a task/import a task(task scheduler) using python - michael1789 - Feb-09-2021

If you ask a specific question, or any question for that matter, I might be able to point you in the right direction.

Have you coded before?

You will need the Time module, that's for sure. What kind of task are you scheduling? What input and output do you need?


RE: How to create a task/import a task(task scheduler) using python - nilamo - Feb-09-2021

https://datatofish.com/python-script-windows-scheduler/


RE: How to create a task/import a task(task scheduler) using python - Tyrel - Feb-10-2021

(Feb-09-2021, 05:46 PM)michael1789 Wrote: If you ask a specific question, or any question for that matter, I might be able to point you in the right direction.

Have you coded before?

You will need the Time module, that's for sure. What kind of task are you scheduling? What input and output do you need?


trying to create a task for task scheduler that runs a program at log on by using python, I know about the schedule module and wincom32 but all the examples dont show how to create a task to be run at log on only at a certain time.

Yes I have coded before


RE: How to create a task/import a task(task scheduler) using python - michael1789 - Feb-10-2021

(Feb-10-2021, 05:18 AM)Tyrel Wrote:
(Feb-09-2021, 05:46 PM)michael1789 Wrote: If you ask a specific question, or any question for that matter, I might be able to point you in the right direction.

Have you coded before?

You will need the Time module, that's for sure. What kind of task are you scheduling? What input and output do you need?


trying to create a task for task scheduler that runs a program at log on by using python, I know about the schedule module and wincom32 but all the examples dont show how to create a task to be run at log on only at a certain time.

Yes I have coded before

So "task" can just be a function that you run? Forgive me, I only write games, but that touches on most things.


RE: How to create a task/import a task(task scheduler) using python - Tyrel - Feb-11-2021

(Feb-10-2021, 03:25 PM)michael1789 Wrote:
(Feb-10-2021, 05:18 AM)Tyrel Wrote: trying to create a task for task scheduler that runs a program at log on by using python, I know about the schedule module and wincom32 but all the examples dont show how to create a task to be run at log on only at a certain time.

Yes I have coded before

So "task" can just be a function that you run? Forgive me, I only write games, but that touches on most things.


No, task scheduler is a default app on your pc and you can create task in it but I want to do it through python


RE: How to create a task/import a task(task scheduler) using python - ndc85430 - Feb-11-2021

I believe Windows exposes an API to user programs, so you should see if it allows you to schedule tasks that way. Perhaps there are also Python bindings for it. I found this, which details the C/C++ API, but again, there are likely Python wrappers.


RE: How to create a task/import a task(task scheduler) using python - Tyrel - Feb-11-2021

(Feb-11-2021, 07:27 AM)ndc85430 Wrote: I believe Windows exposes an API to user programs, so you should see if it allows you to schedule tasks that way. Perhaps there are also Python bindings for it. I found this, which details the C/C++ API, but again, there are likely Python wrappers.

yes there is, its called schedule but there isnt any examples online of how to create a task the runs at logon. There is only for a certain time.