mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
15 lines
636 B
Plaintext
15 lines
636 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 <['CommandLine', 'CurrentDirectory', '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: ['ProcessId', 'ReturnValue']
|
|
Created process is <WinProcess "notepad.exe" pid 26744 at 0x180e84d48d0>
|
|
Waiting 1s
|
|
Killing the process
|