viewing paste Unknown #58629 | PowerShell

Posted on the
1 2 3 4 5 6
Get-ChildItem -Path "C:\Your\Directory\Path" -File | 
ForEach-Object {
    $newName = "THX-" + $_.Name
    Rename-Item -Path $_.FullName -NewName $newName
}
 
Viewed 661 times, submitted by Streusel.