Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Stupid method of adding leading zero to filenames like "1.mp3"
- ls | ren -NewName { $_.Name.PadLeft(7, "0") }
- # OR (sorry, not complete desicion)
- ls | foreach { $("{0:D5}" -f [int]$($_ -replace ".mp3")), "mp3" -join "." }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement