I think the OP is using Windows. The standard Windows command interpreter does not expand wildcards in program arguments.Originally Posted by Salem
However, Windows Explorer will provide a list of files in argv if they are drag and dropped on your program, so this might be a way to avoid manually enumerating files on Windows.