Skip to content

Instantly share code, notes, and snippets.

@Seth-Johnson
Created August 11, 2015 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Seth-Johnson/09330c84a8ba9b87d627 to your computer and use it in GitHub Desktop.
Save Seth-Johnson/09330c84a8ba9b87d627 to your computer and use it in GitHub Desktop.
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