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?
Syntax:
Command.exe *.rpt > out.txt
Exact:
"C:\Users\user\Utilities\mawk.exe" -f "C:\Users\user\My Projects\AWK\EmailSQLResults.awk" C:\Temp\SQL\*.rpt > "C:\Temp\SQL\EmailResults.txt"
Result:
mawk: cannot open C:\Temp\SQL\*.rpt (Invalid argument)
Windows 10. Standard CMD window. mawk 1.3.4 20140914