The following code does not run properly on Windows XP (it is supposed to get all zip file names): f =os.popen("dir /b /s w:\\*.zip") p=f.readlines() The p will end up with a lot of nulls in it, it looks that os.popen() is still broken. Does anybody else have problem with os.popen() and dir command?