mirror of
https://github.com/alexandrebobkov/Components.git
synced 2025-08-09 19:55:25 +00:00
.
This commit is contained in:
@@ -8,8 +8,11 @@ Date: Sep 15, 2024
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
# Script
|
# Script
|
||||||
|
# Specify path and original file extention
|
||||||
Get-ChildItem -Path . -Filter "*.txt" | forEach-Object {
|
Get-ChildItem -Path . -Filter "*.txt" | forEach-Object {
|
||||||
|
# Change file extention from original to a new one
|
||||||
Rename-Item -Path $_.Name -NewName $_.Name.Replace("txt", "bat") -Verbose
|
Rename-Item -Path $_.Name -NewName $_.Name.Replace("txt", "bat") -Verbose
|
||||||
|
# Output the name of file that was renamed
|
||||||
Write-Host $_.Name
|
Write-Host $_.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user