I’m encountering an unusual problem with my Windows 10 command prompt where I can’t view all the files on my desktop using the “dir” command. This issue seems to extend beyond just the desktop as well.

I’ve checked that none of the files are hidden and they’re all files that I’ve created such as Word documents, PowerPoint slides, and PDFs. Usually, I can access all these files by changing my directory to the Desktop using “cd”. Can someone please advise me on how to solve this issue?

Update: I specifically want to see the files in the Desktop directory through the command prompt.

Update 2: I was able to solve the problem. It turned out that my desktop was linked to the OneDrive folder. I changed the directory by moving the folder which also changed the directory. Thanks for all the help!

Askify Moderator Edited question May 2, 2023