cd for command prompt code example Example 1: how to move to directories in command prompt cd Desktop/myDirectory Example 2: cd command windows cd <folder>