no Desktop in cmd dir

정선화 1 Reputation point

There is no Desktop when I type "dir" in my command prompt.


why is this?

I am following the python lecture, and got stuck b/c of this.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,005 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Michael Russo 6 Reputation points

    cd OneDrive

    Desktop should pop right up after this command

    No comments

  2. Castorix31 65,791 Reputation points

    Desktop is a virtual folder and can have any location
    You can check in the registry at :
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    value :

    No comments

  3. Candy Luo 12,451 Reputation points

    Hi ,

    Please first check if you can see desktop in the GUI. As the picture below:


    If not, as Castorix31 said, just check the location in registry:


    Best Regards,



    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments