change directory cmd

C++
cd /D F:\pathcd  
comment to change directory in the cmdcd Desktop/myDirectoryDirectory> cd...
Directory> (directory you want)# move to a directory:
cd myFolder

# move out of a directory
cd ..

# move to another hard disk
# in this example i want to move to drive F, just type:
f:
# and hit enterRename  dir_oldname  dir_newname
Source

Also in C++: