batch rename online code example

Example 1: batch rename file

REM # | EXAMPLE (changes the "ChangeMyName.txt" file's name to "NameChanged.csv")
rename "C:/Users/JacquesK/ChangeMyName.txt" "NameChanged.csv"

REM # | SYNTAX
REM # | rename "<file-to-change-the-name-of>" "<new-file-name>"

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>"