change directory to d cmd code example Example 1: windows cd to another drive cd /D F:\path Example 2: how to move to directories in command prompt cd Desktop/myDirectory