I had to move back to Windows.. How to get just a list of files in a folder? c:\folder > dir /b How to filter list of files in a folder? c:\folder > dir *.xml /b How to create a file from output / result? c:\folder > dir *.xml /b > file.txt