How to recursively change filenames for upper to lower case through bat file
<p>I have been expanding on the issue solved here: <a href="https://superuser.com/questions/65302/is-there-a-way-to-batch-rename-files-to-lowercase/412413#412413">https://superuser.com/questions/65302/is-there-a-way-to-batch-rename-files-to-lowercase/412413#412413</a></p>

<p>I wish to change filenames from upper case to lower case and since files are stored in mulitple folders I wish to do it recursively.</p>

<p>I have tried the following:</p>

<pre><code>setlocal EnableDelayedExpansion
CD /D "somefolder"
FOR /D %%G in (*) DO (
FOR /F "Tokens=*" %%f in ('DIR %%G /l/b/a-d') DO (RENAME "%%f"  "%%f")) 
</code></pre>

<p>I get "the system cannot find the path specified errors".
I am sure I am overlooking something obvious. </p>