added .bat to get filenames, modified to be run from .bat