windows terminal command to rename part of file name code example
Example 1: change all file to another
for f in *.txt; do
mv -- "$f" "$(basename -- "$f" .txt).text"
done
Example 2: batch rename folder
REM # | EXAMPLE (changes the ChangeMyName folder's name to NameChanged)
rename "C:/Users/JacquesK/ChangeMyName" "NameChanged"
REM # | SYNTAX
REM # | rename "<folder-to-change-the-name-of>" "<new-folder-name>"