Since you intend to process every file with AREXX, maybe it's easier to do the file selection within the script itself.
Or you just do a list ram:#?.ps lformat "foo.rexx *"%s%s*"" to ram:bar.bat This one gives you a batch file ("bar.bat") in RAM:. If you execute it, for every file it starts an AREXX script ("foo.rexx") with the name of the original file as parameter - though you still have to do the renaming and saving in the AREXX script itself.