Twice now during development with gcc on Windows, I've run into perl scripts meant for Unix systems that take a list of >100 filenames as their argument, which I need to create using wildcards to select them out of a folder of many other files:
perl avstack.pl */*.o
perl egypt *.expand
But Windows doesn't do wildcard expansion, the command itself is required to do this. How can I write a batch script to get the list of filenames and pass it to the program? For example:
avstack.bat */*.o
egypt.bat *.expand
Or, since the file extensions are known for each batch file, it could be called with a folder name instead:
avstack.bat "C:\path\with\some_o_files"
egypt.bat "D:\path\with\some_expand_files"
(Actually the folder method would probably be better since I could make a drag-and-drop shortcut or SendTo menu item.)