# i'm guessing os.walk() is the best way to traverse folder trees. import os, glob
for dir, subdir, files in os.walk('.\InteropSolution'): for file in files: if glob.fnmatch.fnmatch(file,"*.dll") or glob.fnmatch.fnmatch(file,"*.exe"): print dir+file -- http://mail.python.org/mailman/listinfo/python-list