How do I hide the console when I run another file with subprocess.Popen?

Viewed 30

I wrote a program with PyQt5. In this program, I have to run the exe file. I do this with the following code. But I want the subprocess window to be hidden and the user will not notice this. How to hide window subprocess window?

self.Xfile = subprocess.Popen("start /wait cmd /c start Xfile.exe", shell=True)
0 Answers
Related