
Meu script PowerShell:
$liste = get-content "Y:\Users\H\Documents\D\Game Of Throne\prod\recup.txt" `
|Select-Object -last 1
$liste | ForEach-Object {Write-Host ($i++) $line}
get-childItem "Y:\Users\H\Documents\D\Game Of Throne\*.bmp*" `
| rename-item -newname { $_.name -replace("aaa",$line)}
Exemplo de arquivos para renomear:GameOfThrone aaa.bmp; GameOfThrone aaa(2).bmp ...
Em arquivo de texto:
A
B
C
Quero meus arquivos com o seguinte nome:GameOfThrone A.bmp; GameOfThrone B.bmp ...