I\'m trying to create a Python script that would :
To find all the filenames use os.listdir().
os.listdir()
Then you loop over the filenames. Like so:
import os for filename in os.listdir('dirname'): callthecommandhere(blablahbla, filename, foo)
If you prefer subprocess, use subprocess. :-)