Advertisement
Merzavets

PoSh numeric renamer

Nov 26th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # rename files numeric_name.mp3  to numeric_name-1.mp3 (ie with previous number)
  2. $a.name | foreach {$b = $_ -replace '.mp3', ''; ren $_  "$([int]$b - 1).mp3" -WhatIf}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement