Skip to content
Renaming A Bunch Of Files At The Same Time episode artwork

Nov 7, 2018 5 min

Renaming A Bunch Of Files At The Same Time

from Random Tech Thoughts Hosted by Kyle Souza

I had to strip off the first part of a bunch of file names. You can do this inside of Windows Powershell, using this simple script: get-childitem *.dat | rename-item -newname { [string]($._name).substring(9) } The file extension and the numeric value are variable based on your needs. WARNING: THIS WILL AFFECT EVERY FILE IN YOUR CHOSEN DIRECTORY, so move all the files that you need to rename to their own folder. And, it can't be redone, so make a backup beforehand, and make sure you're in the correct folder before you execute. Become a supporter of this podcast: https://www.spreaker.com/podcast/random-tech-thoughts--2829929/support.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Renaming A Bunch Of Files At The Same Time

0:00 5:53

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Random Tech Thoughts?

This episode is 5 minutes long.

When was this Random Tech Thoughts episode published?

This episode was published on November 7, 2018.

Can I download this Random Tech Thoughts episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.