Dec-02-2019, 01:15 PM
Hi Everyone,
Good Day!
I learn few things about how to create new process using Subprocess module in Python. Indeed, I am more curious to know if I can open new process and select more functionality of the newly created process.
e.g.
Rather opening just notepad++.exe, I'd like to open a new tab with "Language" select as C.
Also instead of open snipping tool, I'd be glad if I open SnippingTool.exe along with "new snip" option selected.
According to the manual, Subprocess module lets us spawn new processes, connect to their input/error/output pipes, and acquire their return codes.
Specific in Popen, args argument "should be a sequence of program arguments".
Is there any way that I can write my code the way I want in python? Is there any other module that helps me to execute my thoughts?
Thanks in advance!
Good Day!
I learn few things about how to create new process using Subprocess module in Python. Indeed, I am more curious to know if I can open new process and select more functionality of the newly created process.
e.g.
Rather opening just notepad++.exe, I'd like to open a new tab with "Language" select as C.
Also instead of open snipping tool, I'd be glad if I open SnippingTool.exe along with "new snip" option selected.
According to the manual, Subprocess module lets us spawn new processes, connect to their input/error/output pipes, and acquire their return codes.
Specific in Popen, args argument "should be a sequence of program arguments".
Is there any way that I can write my code the way I want in python? Is there any other module that helps me to execute my thoughts?
Thanks in advance!