Created
August 11, 2015 23:54
-
-
Save Seth-Johnson/09330c84a8ba9b87d627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[int]$startNum = $(throw "starting number is required") | |
) | |
#Function preformRename { | |
Get-ChildItem -filter *.mp3 | Foreach-Object { | |
$NewName = $_.BaseName -replace "^[0-9][0-9]",$startnum | |
$startNum += 1 | |
write $NewName | |
#write $startNum | |
#Rename-Item -Path $._FullName -NewName $NewName | |
} | |
#} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment