Renaming A Bunch Of Files At The Same Time
Nov 7, 2018 ·
5m 52s
Download and listen anywhere
Download your favorite episodes and enjoy them, wherever you are! Sign up or log in now to access offline listening.
Description
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...
show more
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.
show less
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.
Information
Author | Kyle Souza |
Organization | Kyle Souza |
Website | - |
Tags |
Copyright 2024 - Spreaker Inc. an iHeartMedia Company