title: Using the call function on MS-DOS to call all files in a directory with a certain extension
body: <p>I have a code that calls specific files [.cmd files to be exact] using the call function, then echos a certain variable. This is highly inefficient due to the fact that the program needs to manually call each file. The current code, in case you need it is:</p>
  
  <pre><code>call afile.cmd
  echo %Title%
  call bfile.cmd
  echo %Title%
  pause &gt; nul
  </code></pre>
  
  <p>[this is only the call part] Is there anyway to make it so it automatically calls all files with a .cmd extension, and displays all the %Title% variables without multiple </p>
  
  <pre><code>echo %Title%
  </code></pre>
  
  <p>functions?
  I've tried using:</p>
  
  <pre><code>call *.cmd 
  call *.*
  call *
  </code></pre>
  
  <p>just to see if those would work [since the * usually defines all files] but they didn't. Any suggestions for me?</p>