For example, the following command changes the file name extensions of all .gif files to .jpg:
Get-ChildItem *.txt | Rename-Item -NewName { $_.name -replace '.txt$','.log' }
You mean .txt to .log?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
For example, the following command changes the file name extensions of all .gif files to .jpg:$_.name -replace '.txt$ ','.log' }
Get-ChildItem *.txt | Rename-Item -NewName {
You mean .txt to .log?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.