From 579e8d849be5347bb4c80cb8cd1be0cd53c714fa Mon Sep 17 00:00:00 2001 From: Alexandre B Date: Sun, 15 Sep 2024 02:47:29 -0400 Subject: [PATCH] . --- assets/rename.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/rename.ps1 b/assets/rename.ps1 index 04d4022..b214252 100644 --- a/assets/rename.ps1 +++ b/assets/rename.ps1 @@ -8,8 +8,11 @@ Date: Sep 15, 2024 #> # Script +# Specify path and original file extention 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 + # Output the name of file that was renamed Write-Host $_.Name }