SyntaxFix
Write A Post
Hire A Developer
Questions
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. :-)