<div dir="ltr">More specifically to your situation:<div><br></div><div><div>@Echo on & SetLocal EnableExtensions</div><div>For /F "tokens=1,2,3* delims=-" %%I IN ('dir /b ??-??-????') DO rename "%%~I-%%~J-%%~K" "%%~K-%%~I-%%~J"</div></div><div><br></div><div>Make a test folder and copy a small sample of the files you want to rename into the test folder. Then copy/paste the above two lines into Notepad and save it as a text file named something like "bulkrename.bat" or some such in the same test folder. From the console, run your bulkrename.bat (or whatever) script and see if it works as expected. If so, run the batch script against your other filenames. </div><div><br></div><div>This exact script will likely only work if your filenames are exactly in the format you specified. ie:  MM-DD-YYYY</div><div>NOT "M-D-YYYY"  or "MM-D-YYYY" or "M-DD-YYYY" or "MM-DD-YYYY-description" or "MM-DD-YYYY.jpg" or anything else. If your filenames are other than what you stated, you'll probably need to modify the script accordingly.</div><div><br></div><div><br></div><div>Of course, YMMV, disclaimers, and all other warnings apply here.</div><div>Naturally, you've backed up your files before subjecting them to potential mass destruction. Right?</div><div><br></div><div><br></div><div>FWIW, I pulled this particular FOR command from <a href="http://lurnedtoday.blogspot.com/2013/03/batch-rename-of-folders-in-windows.html">http://lurnedtoday.blogspot.com/2013/03/batch-rename-of-folders-in-windows.html</a>. For some insight into how it works, you can check out the link. I modified the command to work with filenames and not folder names as used by the author.</div><div><br></div><div>More FWIW, my quick and dirty Google search for a more relevant-to-you script was:</div><div><a href="https://www.google.com/search?q=bulk+rename+files+windows&oq=bulk+rename+files&aqs=chrome.1.69i57j0l5.7654j0j7&sourceid=chrome&ie=UTF-8#newwindow=1&q=bulk+rename+files+%22MM-DD-YYYY%22+to+%22YYYY-MM-DD%22">https://www.google.com/search?q=bulk+rename+files+windows&oq=bulk+rename+files&aqs=chrome.1.69i57j0l5.7654j0j7&sourceid=chrome&ie=UTF-8#newwindow=1&q=bulk+rename+files+%22MM-DD-YYYY%22+to+%22YYYY-MM-DD%22</a><br></div><div><br></div><div><br></div><div><br></div><div>HTH and good luck,</div><div>Chad</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>______________________________<br><b>Chad Neeper</b><br><font size="1">Senior Systems Engineer</font><br><br><b>Level 9 Networks</b><br><font size="1">740-548-8070 (voice)<br>866-214-6607 (fax)</font><br><br><font size="1"><i>Full IT/Computer consulting services -- Specialized in libraries and schools</i></font><br></div></div></div></div>
<br><div class="gmail_quote">On Tue, Apr 19, 2016 at 3:08 PM, Chad Neeper <span dir="ltr"><<a href="mailto:cneeper@level9networks.com" target="_blank">cneeper@level9networks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, not impossible at all. Powershell can no doubt handle it, with a little careful programming. Even the normal Windows console might be able to handle it with a little creative scripting. However, if you're not able to get your PS script the way you want it, perhaps you can make use of a Windows GUI tool instead. <a href="http://www.howtogeek.com/howto/45646/bulk-rename-tool-is-a-lightweight-but-powerful-renaming-tool/" target="_blank">Bulk Rename Tool</a> or a similar such tool might do the trick for you. I haven't used it myself, but it claims to support wildcards, variables, etc...what you'd need for your purpose.<div><br></div><div>HTH,</div><div>Chad</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div>______________________________<br><b>Chad Neeper</b><br><font size="1">Senior Systems Engineer</font><br><br><b>Level 9 Networks</b><br><font size="1"><a href="tel:740-548-8070" value="+17405488070" target="_blank">740-548-8070</a> (voice)<br><a href="tel:866-214-6607" value="+18662146607" target="_blank">866-214-6607</a> (fax)</font><br><br><font size="1"><i>Full IT/Computer consulting services -- Specialized in libraries and schools</i></font><br></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Apr 19, 2016 at 2:12 PM, Gerry Vogel <span dir="ltr"><<a href="mailto:gvogel@avonlake.lib.oh.us" target="_blank">gvogel@avonlake.lib.oh.us</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Is there any such utility or script that can do this?  Various experts have no answer and a Windows Powershell script that was supposed to do the job didn't.<div><br></div><div>I just want to change thousands of file names that are dates in MM-DD-YYYY to YYYY-MM-DD.</div><div><br></div><div>Impossible, I guess.<span><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Gerry Vogel, MLIS<br>Assistant Director, Avon Lake Public Library<br>32649 Electric Blvd. Avon Lake OH 44012 <a href="http://www.alpl.org" target="_blank">www.alpl.org</a><br>general phone: <a href="tel:440-933-8128" value="+14409338128" target="_blank">440-933-8128</a> (x239) direct line: <a href="tel:440-933-7238" value="+14409337238" target="_blank">440-933-7238</a> <br>cell (and text): <a href="tel:440-714-7581" value="+14407147581" target="_blank">440-714-7581</a> fax: <a href="tel:440-933-6406" value="+14409336406" target="_blank">440-933-6406</a><br>*any opinions expressed are my own and not (necessarily, or yet) those of ALPL*</div><div><br></div><div><b>S<span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,'Lucida Sans Unicode';font-size:13px;line-height:18px">ign up for</span><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,'Lucida Sans Unicode';font-size:13px;line-height:18px"> <a href="http://4la.co/14TZCK" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(77,77,79)" target="_blank">Email Blasts</a> </span><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif,'Lucida Sans Unicode';font-size:13px;line-height:18px">about upcoming library events.</span></b></div><div><br><br><br><br><br></div></div></div></div></div></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
OPLINLIST mailing list -- <a href="mailto:OPLINLIST@lists.oplin.org" target="_blank">OPLINLIST@lists.oplin.org</a><br>
<a href="http://lists.oplin.org/mailman/listinfo/oplinlist" rel="noreferrer" target="_blank">http://lists.oplin.org/mailman/listinfo/oplinlist</a><br>
<br>
<a href="http://aboutbooks.info" rel="noreferrer" target="_blank">http://aboutbooks.info</a> -- Search for author, title, subject... anything about books.<br></blockquote></div><br></div>
</blockquote></div><br></div>