In the above screenshot, you can see the list of all directories ... The CD command in Command Prompt is used to change the current directory to a different directory on a Windows 11/10 PC.