Whenever I need something, I come here and at this moment I need something I found here but wanted more in this code:
@echo off
setlocal enableDelayedExpansion
for %%F in (*.txt) do (
set "name=%%F"
ren "!name!" "!name:file1=fileA!"
ren "!name!" "!name:file2=fileB!"
)
My question is: how to rename the files1 and file 2 in this folder and subfolders and write at the end a message "Rename: 2 files"
Thank you for your help.