something like this?

shell "%comspec% /C dir *.exe >c:\temp\executables.txt"
_________________________
Co