remove prefix from mp3 files in folder

PHOTO EMBED

Sun Jul 30 2023 04:42:35 GMT+0000 (Coordinated Universal Time)

Saved by @vs

# Set the folder path where the MP3 files are located
$folderPath = "C:\Path\To\Your\Folder"

# Get all MP3 files in the folder
$mp3Files = Get-ChildItem -Path $folderPath -Filter "output_*.mp3"

# Rename each MP3 file by removing the "output_" prefix
foreach ($file in $mp3Files) {
    $newName = $file.Name -replace "^output_", ""
    Rename-Item -Path $file.FullName -NewName $newName
}
content_copyCOPY