Hi there!

I'm having a very annoying problem... simply put, I have a .pyw file, and it works great! However, whenever the script runs the os.system() function, I get a brief CMD Prompt window, which immediately disappears. It's quite annoying! Is it possible to run os.system() commands without having the command line appear? Thanks a lot!

Recommended Answers

All 3 Replies

Is it possible to run command line functions... not through the command line?

did you try subprocess.Popen(myCommand) ? or subprocess.call(myCommand)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.