# Bulk rename file code question

**URL:** https://forums.powershell.org/t/bulk-rename-file-code-question/24357
**Category:** PowerShell Help
**Created:** [June 27, 2024, 7:12am UTC](https://forums.powershell.org/t/bulk-rename-file-code-question/24357 "2024-06-27T07:12:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![scott\_86](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@scott\_86](https://forums.powershell.org/u/scott_86)
#### Post date: [June 27, 2024, 7:12am UTC](https://forums.powershell.org/t/bulk-rename-file-code-question/24357/1 "2024-06-27T07:12:31Z")

</div>

Hi,

Can anyone please help me out with a bulk file renaming code? Example:

Rename ‘Joe Bloggs.pdf’ to ‘Bloggs Joe.pdf’ - essentially switching the first and last name around.

Thanks.

---

<div class="post-metadata">

### Author: ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)
#### Post date: [June 27, 2024, 7:38am UTC](https://forums.powershell.org/t/bulk-rename-file-code-question/24357/2 "2024-06-27T07:38:59Z")

</div>

> [@scott\_86](#):
>
> Can anyone please help me out with a bulk file renaming code?

This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

We actually expect you to make an own attempt at the first place to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.

---

<div class="post-metadata">

### Author: ![scott\_86](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@scott\_86](https://forums.powershell.org/u/scott_86)
#### Post date: [July 1, 2024, 6:02am UTC](https://forums.powershell.org/t/bulk-rename-file-code-question/24357/3 "2024-07-01T06:02:59Z")

</div>

Thank you. Time to go from saying “I have absolutely no idea what I am doing” to giving it a go myself!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)
#### Post date: [July 31, 2024, 6:03am UTC](https://forums.powershell.org/t/bulk-rename-file-code-question/24357/4 "2024-07-31T06:03:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
