This question already has an answer here:
I'm using a batch file to execute an
awk program and feed it filenames.
Question: How do I get it to expand the filenames on the command line?
Command.exe *.rpt > out.txt
"C:\Users\user\Utilities\mawk.exe" -f "C:\Users\user\My Projects\AWK\EmailSQLResults.awk" C:\Temp\SQL\*.rpt > "C:\Temp\SQL\EmailResults.txt"
mawk: cannot open C:\Temp\SQL\*.rpt (Invalid argument)
Windows 10. Standard CMD window. mawk 1.3.4 20140914