I'm having a hard time understanding your question, what exactly would > /sFoo > :i"Bar" > :wq > do to a file, do you have a GUI available? Have a look at sys.argv() and glob.glob() in the standard libraries they might help. Tom