title: Update all git repos in a folder in windows
body: <p><a href="https://stackoverflow.com/a/15694215/1247080">This</a> answer is for linux command line. I need the same for Windows command line. I created the following using <a href="https://stackoverflow.com/a/8055390/1247080">this</a>, but my code does not work. </p>
  
  <pre><code>for /D /r %i in (*.*) do (cd %i &amp;&amp; echo %i &amp;&amp; git pull &amp;&amp; cd ..)
  </code></pre>
  
  <h3>Update</h3>
  
  <p>From @SevenEleven's answer and @kostix's comment the following worked. </p>
  
  <pre><code>for /D %%i in (.\*) do (cd "%%i" &amp;&amp; git pull &amp;&amp; cd..)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>for /D %%i in (*) do (cd "%%i" &amp; git pull &amp;&amp; cd..)
  </code></pre>