# Rename all files in a folder

**URL:** <https://boards.straightdope.com/t/rename-all-files-in-a-folder/565887>\
**Category:** Factual Questions\
**Created:** [December 30, 2010, 11:17pm UTC](https://boards.straightdope.com/t/rename-all-files-in-a-folder/565887 "2010-12-30T23:17:04Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [January 1, 2011, 11:27pm UTC](https://boards.straightdope.com/t/rename-all-files-in-a-folder/565887/21 "2011-01-01T23:27:24Z")

</div>

> [@qazwart](#):
>
> I bow down to your superior geekitude. It is an amazing piece of batch code.

Amazing in the fact that you have to run in circles to make it work, maybe. 😃

The only thing I caught that you didn’t was the use of the subst command. The rest was just reading [this website](http://www.robvanderwoude.com/batchcommands.php) and trial and error.

[Previous page](https://boards.straightdope.com/t/rename-all-files-in-a-folder/565887.md?page=1)
