The default order of /D in windows batch file
<p>My company has a old batch file, which has this line:</p>

<pre><code>for /D %%i in (*) do call ..\ArchiveFeedFolder.bat %%i
</code></pre>

<p>From our log, looks like windows always order the directories alphabetically by default.</p>

<p>for example, say I have following folders in my directory:</p>

<p>20150101</p>

<p>20150102</p>

<p>20150103</p>

<p>Above batch command will always handle 20150101, and then 20150102 and then 20150103. Is it guaranteed to work this way? I tried to find some documents, but seems no document mentioning the sorting order of </p>

<pre><code>for /D 
</code></pre>