I have a problem when sending a cmd command in python. This command opens another tool, giving it some arguments. The problem is that the tool is opening, but also opens a cmd window, where I can see the message sent. If I close this cmd window, the tool will be closed, like a child process. This is odd: I just want to open the tool, without any cmd window being opened.
If I do it manually, by creating a .bat file which I double click, it works normally (a cmd is opened for 0.1 seconds while the tool is opening, without any cmd file still attached to the tool).
Big picture: I've created a tool which will ask for some paths and then you can click "start tool", those paths are send as arguments to the tool which will be opened.
There is no problem with the CMD window since whatever script you're writing is opening the applications which you're passing in arguments but through the CMD window only.
And you talked about a batch file that too works via CMD window only. Please check the flow of your code and also note or find out how it works at the back end. Is it taking the help of CMD Window?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With