python - parameter transferring in the wmi -


hello have problem understanding piece of code:

import wmi c = wmi.wmi ()  process_id, return_value = c.win32_process.create (commandline="notepad.exe") process in c.win32_process (processid=process_id):   print process.processid, process.name  result = process.terminate () 

i can't understand

(commandline="notepad.exe") 

how mechanism working? , can find definition of commandline in advance help

it sent part of **kwargs of def new (self, **kwargs): can see in wmi.py. convention microsoft has defined process creation , can find in msdn documentation.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -