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

marked as duplicate by Zoredache, DavidPostill windows Oct 21 '16 at 11:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Found the answer here: Is there any way to get the windows cmd shell to expand wildcard paths?

I looked before I posted, but apparently not hard enough. 8: -(

Not the answer you're looking for? Browse other questions tagged or ask your own question.