mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
15 lines
637 B
Plaintext
15 lines
637 B
Plaintext
(cmd) python wmi\create_process.py
|
|
WMI namespace is <<WmiNamespace "root\cimv2">>
|
|
Process class is <WmiObject class "Win32_Process">
|
|
Method Create InParams is <<WmiObject class "__PARAMETERS">>
|
|
Method Create InParams properties are <[u'CommandLine', u'CurrentDirectory', u'ProcessStartupInformation']>
|
|
Creating instance of inparam
|
|
InParam instance is <<WmiObject instance of "__PARAMETERS">>
|
|
Setting <CommandLine>
|
|
Executing method
|
|
OutParams is <WmiObject instance of "__PARAMETERS">
|
|
Out params values are: [u'ProcessId', u'ReturnValue']
|
|
Created process is <WinProcess "notepad.exe" pid 24036 at 0x3d04390>
|
|
Waiting 1s
|
|
Killing the process
|