how to rename a folder in windows using command prompt code example Example: change folder name using cmd Rename dir_oldname dir_newname