Running a windows command

Stephen Boulet stephen.boulet at
Tue Jan 15 16:14:30 EST 2002

I have a command line program, foo.exe, that when run will dump some
text to the dos shell. I've tried this:

import os

result = os.popen('foo c:\someFile.txt')

But that doesn't work. How do I capture the text sent to the dos shell?

-- Stephen

More information about the Python-list mailing list