The commands.py module claims to only work on posix, I really don't see why that should be case. The only issue is the use of { ;} in the command sent to popen, but that's just a matter of changing the command for the os. Simple. If accepted there should be a documentation change as well, but not sure where that is. Tested on Win2k using Python 2.1.3
Logged In: YES user_id=31435 Just noting that this doesn't work on Win95, Win98, Win98SE, or Win ME -- command.com (their native shell) doesn't support any way to redirect stderr.
Logged In: YES user_id=166142 Oops, I have an ls exectuable on my box so I didn't notice that in testing. It would be simple to just parse the results of "dir file" though. I'm not sure what to do about Win9x or WinME though, its clear I'll think a little harder about this one.