command prompt cd to different drive 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