If you are trying to use CMD CD command to change directory in Windows 10 but find that the CD command is not working, you can check how to fix this problem in this post. Some people also encounter that cd desktop is not working, also check how to fix it. To recover data from storage devices, manage hard drive partition, backup and restore system, etc. MiniTool software is professional.
This post helps you fix CD command not working error in Windows 10, and fix CD desktop not working in CMD error. Check the issues and solutions.
How to Fix CD Command Not Working in CMD Windows 10
Issue 1: CD command doesn’t work when I try to change directory to another drive.
How to fix: When you need to change to another drive, you don’t need to use CD command and it won’t work, you can just type the drive letter followed by a colon, e.g. D:.
If you want to change the directory and folder path at the same time, you can use add the “/d” switch after CD command, e.g. cd /d d:\PS.
Issue 2: I used the CD command to switch my drive to E:, but the problem is that the CD command was not working. The command I used was “cd E:”. When I tried to use the command “E:\”, it still can’t bring me to the E drive.
How to fix: To change to a different drive in CMD, you have to add a “/d” switch in the CD command. For instance, if you want to change to E drive, you can type cd /d E:\ in Command Prompt window and hit Enter.
Another easier way to change to a different drive in CMD is not to use CD command but only type the drive letter with a colon, e.g. E:.
Issue 3: “cd..” command is not working? How to fix it? When I type cd.. in Command Prompt window in Windows 10, it says “cd..” is not recognized as an internal or external command, operable program or batch file. How to fix it?
How to fix: You’ve typed the wrong command that the cmd.exe can’t recognize. Here the command is not “cd..” but “cd ..”. You missed the space after “cd”. When using command lines in Windows, you should always be aware of the spaces in the command lines and don’t omit them.
How to Fix CD Desktop Not Working Windows 10
Issue 1: In my Windows 10 computer, I can’t CD to Desktop anymore. What’s wrong with my computer? I type the command cd Desktop in CMD, but it says “the system cannot find the path specified”.
How to fix: Your Desktop directory may have been moved to another location. You can find the new location of your Desktop directory by following the instructions below.
- You can right-click the blank space of the computer desktop screen and select New to create a new file on the Desktop.
- Next you can right-click the create file and choose Properties.
- Under the General tab, you can check the file path and it contains the current Desktop directory location.
Issue 2: CMD (Command Prompt) can’t go to the Desktop. After I open elevated Command Prompt, I type c:\Users\MyName\Desktop, and hit Enter, I get an error message “’c:\Users\MyName\Desktop’ is not recognized as an internal or external command, operable program or batch file.” How can I get to Desktop directory in CMD?
How to fix: To change directory in CMD, you need to use the change directory (CD) command. In regard to the issue above, you should type cd c:\Users\MyName\Desktop in Command Prompt and hit Enter.
If you want to change the drive as well, you can use cd /d.
Bottom Line
If you are encountering CMD CD command not working or CD desktop not working in Windows 10, you can check above for the detailed fixes.
FYI, if you mistakenly deleted or lost some files in your Windows 10 computer, you can use MiniTool Power Data Recovery to easily recover any deleted/lost files from computer. Besides, this best data recovery software also allows you to restore data from external hard drive, USB/thumb/pen drive, SD card of phones and cameras, and more.