[python-win32] how to code pywin32 run existing window task scheduler?

Pongthorn Sangkaphet technqvi_gangster at hotmail.com
Wed Jan 13 23:07:17 EST 2021


I am interested in pywin32 . I am going to use it to run window task scheduler through Django web application ?

Does pywin32 provide some features or method to run window task scheduler?

I have tried already but error

[cid:image003.png at 01D6EA65.65D06140]



I would like you to guide sample code to do as the following requirement.

  1.  My job has been created on Window task scheduler already as the figure below
My job is responsible for executing python file.
[cid:image006.png at 01D6EA65.65D06140]


  1.  I would like you to guide code to run job of window task scheduler in view.py on Django web application
I will code in def create_report(request)



[cid:image009.png at 01D6EA65.65D06140]
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20210114/eaccbcf8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AC12E8300B154CB59F56651FFC0EAC99.png
Type: image/png
Size: 343143 bytes
Desc: AC12E8300B154CB59F56651FFC0EAC99.png
URL: <https://mail.python.org/pipermail/python-win32/attachments/20210114/eaccbcf8/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A1AA0C10F944457293FFF8044BC15EBE.png
Type: image/png
Size: 459556 bytes
Desc: A1AA0C10F944457293FFF8044BC15EBE.png
URL: <https://mail.python.org/pipermail/python-win32/attachments/20210114/eaccbcf8/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 181B3EFE2CA24708AF95DB36FFA27D43.png
Type: image/png
Size: 445810 bytes
Desc: 181B3EFE2CA24708AF95DB36FFA27D43.png
URL: <https://mail.python.org/pipermail/python-win32/attachments/20210114/eaccbcf8/attachment-0005.png>


More information about the python-win32 mailing list