I have folder which have 21 wmv files (01,02 ..21).i have text file which have titles for this wmv files. how do i call the text files and rename the wmv files using powershell. below is the code and there is second link for another powershell code which has similar request as mine but doesn't work for me. let me know if needed more clarity
get-childItem *.wmv | rename-item -newname { $_.name -replace '_',' '
-replace '\d{4}', '($0)' }
Windows Powershell - Rename a list of files using a list from a text document