1
好的,我在這裏很無能。我使用Python WMI模塊做以下命令:爲什麼這個python WMI調用給我一個錯誤?
sj = wmi.Win32_ScheduledJob
sj.Create("cmd", 0x40000000, 32, 1, 0, "******153000.000000-420")
這使我有以下錯誤:
Traceback (most recent call last):
File "<pyshell#56>", line 1, in <module>
sj.Create("cmd", 0x40000000, 32, 1, 0, "******153000.000000-420")
File "C:\Python25\lib\site-packages\wmi.py", line 431, in __call__
handle_com_error()
File "C:\Python25\lib\site-packages\wmi.py", line 241, in handle_com_error
raise klass (com_error=err)
x_wmi: <x_wmi: Unexpected COM Error (-2147352567, 'Exception occurred.', (0, u'SWbemProperty', u'Type mismatch ', None, 0, -2147217403), None)>
好了,你可以告訴我這個論點我提供錯了嗎?請給我示例代碼。謝謝!