locked
CMD does not recognize desktop as a directory path RRS feed

  • Question

  • I am trying to go from C:\Users\Aubri> to C:\Users\Aubri\Desktop> using "cd Desktop" or "cd desktop"

    however I get the error message saying the system cannot find the path specified. I'm not sure why this is, I can use cd .. and go back to a parent directory, but cannot move to the desktop form the user directory. Is there something I'm doing wrong?

    Monday, November 11, 2019 4:19 AM

All replies

  • "Desktop" is not necessarily ion that location on most systems.

    To get the desktop locations use the command:

    [environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop)


    \_(ツ)_/

    Monday, November 11, 2019 4:55 AM