Skip to content

Commit

Permalink
Create rename.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbiro authored Mar 10, 2023
1 parent 49d2b7c commit ffd124e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rename.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Param(
[Parameter(ValueFromPipeline=$true, Mandatory = $True)]
$Files,
[Parameter(Mandatory = $True)]
[string] $Old,
[Parameter(Mandatory = $True)]
[string] $New

)
$Files | ForEach-Object { Move-Item $_.Name ($_.Name -replace $Old, $New ) }

0 comments on commit ffd124e

Please sign in to comment.