Created
September 22, 2024 20:23
-
-
Save kerbrose/9eee1c29997f4579b984d602f5b8c6e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $path = "file_list.csv" | |
| $csv = Import-Csv -Delimiter "," -path $path | |
| foreach($line in $csv) | |
| { | |
| $filenewname = ($line.name + "." + $line.format) | |
| Write-Host $filenewname | |
| rename-item -path $line.path -NewName $filenewname | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment