In my Windows 10 box, I can't cd to Desktop anymore.

C:\Users\me>cd Desktop
The system cannot find the path specified.


What's wrong with my computer?

  • 5
    Please edit the post and include result of dir command – gronostaj Nov 16 '19 at 8:24
  • @gronostaj There is no file suspected to be my Desktop in my dir result – Jin Kwon Nov 16 '19 at 9:25
  • Have you relocated folders or otherwise changed any permissions or attributes in C:\Users\me? – harrymc Nov 16 '19 at 10:59
  • 9
    @JinKwon - Please still provide the results of the dir command. – Ramhound Nov 16 '19 at 12:49
  • @Ramhound Please see my answer. The mystery solved with another mystery laid. – Jin Kwon Nov 17 '19 at 5:45

Your Desktop directory has been moved to a different location. To find its new location:

  1. Create a new file on the Desktop
  2. Right-click the file and click Properties
  3. On the General tab make note of the file's path. It will include the Desktop directory's current location.
  • 1
    @wjandrea No. If you move or rename it, everything on the Desktop will disappear (although not be deleted) and Windows will create a new directory in place of the moved/renamed one. This page explains the correct process for changing the actual location of the Desktop directory (the example uses the Downloads directory but it's the same process): dummies.com/computers/operating-systems/windows-10/… (somehow I can never find the official Microsoft documentation on this when I need it) – Micheal Johnson Nov 16 '19 at 19:27
  • 1
    Why would it have moved? My Desktop sure is under %HOMEPATH%. – RonJohn Nov 17 '19 at 0:38
  • 1
    When I tried what accepted answer suggested, I found, Oh Lord!, my Destkop is currently targeting C:\Users\<me>\OneDrive\Desktop I'm not sure why this happening. – Jin Kwon Nov 17 '19 at 5:44
  • 1
    @Ramhound If it ever starts doing that on its own, I'll nuke it from high orbit. Programs shouldn't touch fundamental locations like this. – Mast Nov 17 '19 at 12:01
  • 2
    @Ramhound Uninstalling OneDrive was actually pretty easy on my last Win10 install (where it was installed by default for some reason). The feature may be optional, but I would expect a warning that enabling the feature is going to move entire folders, especially the fundamental ones. – Mast Nov 18 '19 at 8:54

This solution might be late but you have to write: cd onedrive then cd desktop

Hopefully this helps :D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.