Renaming a folder in DOS by MOVE command:
MOVE FOLDER1 FOLDER2
The method works in Windows command prompt as well.
More details and examples: ss64.com/nt/move.html.