I’m running Windows XP and want to run a process and print its exit code. I don’t have a C compiler, nor do I want to use one. I do have Python though, so I figure it’s probably the easiest way to do this.
How can I write a quick python script to run a process and print its exit code?
never mind, found it in the subprocess module: