title: How to pass wildcard argument like *.txt in windows cmd
body: <p>My directory tree:</p>
  
  <pre><code>test/
  |_____ 1.txt   content: 1_line1\n1_line2
  |_____ 2.txt   content: 2_line1\n2_line2
  |_____ test_fileinput.py
  </code></pre>
  
  <p>My Python script:</p>
  
  <pre><code>import fileinput
  import sys
  
  for line in fileinput.input(sys.argv[1:]):
       print(fileinput.filename(), fileinput.filelineno(), line)
  </code></pre>
  
  <p>First I tried it on Linux, as you see it works flawlessly:</p>
  
  <pre><code>$ python3 test_fileinput.py *.txt
  1.txt 1 1_line1
  
  1.txt 2 1_line2
  2.txt 1 2_line1
  
  2.txt 2 2_line2
  </code></pre>
  
  <p>But on Windows:</p>
  
  <p><img src="https://i.stack.imgur.com/ehuAX.jpg" alt="enter image description here"></p>
  
  <p>Of course I can do <code>python test_fileinput.py 1.txt 2.txt</code>, but I'm wondering is there a way that I could still pass <strong><code>*.txt</code></strong> on Windows? Thank you.</p>