简体   繁体   中英

Python - Win32Com Client Dispatch Hanging as Scheduled Tasks

I have a Python Script, which uses win32com.client.dispatch and redemption in order to connect to an instance of Outlook and harvest some data from a public folder.

When I execute this script on command line it works just fine.

Adding it as a scheduled task, it appears to get hung at the line Outlook = win32com

I added Event Log statements along the way to see where it is getting hung, other than that I don't have much in the way of error logs (since it doesnt actually fail)

Is there any sort of security settings I should be concerned about or anything I am not thinking of? Everything works fine with a standard python call in the CMD.

Scheduler作为服务运行,并且不应在服务中使用Office应用程序(包括Outlook)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM