

Now whenever you open %USERPROFILE%\Desktop (in any program) you'll actually be looking at the contents of %USERPROFILE%\OneDrive\Desktop. Open the Command Prompt, and then execute the following command: mklink /J "%USERPROFILE%\Desktop" "%USERPROFILE%\OneDrive\Desktop" If your internet goes out, your Desktop files will still be available and not cause future head-scratching when you can't open them or they take a long time to open.

Then go into the OneDrive folder, right-click the Desktop folder there, and then select "Always keep on this device". Rename the existing Desktop folder to something like "Desktop-old". This will open your User Profile directory ( C:\Users\YOURUSERNAME). Open the Run dialog (Windows Key + R), then type in %USERPROFILE% and press Enter. Use a directory junction to link your the system Desktop folder to the OneDrive Desktop folder. However you can bring back "Open command window here" manually by following this WindowsCentral guide. Since Windows 10, this has been replaced with "Open Powershell window here". In older versions of Windows, you can open any folder in Explorer, hold down the Shift key, right-click the background of the open folder and then select "Open command window here". The %USERPROFILE%\Desktop will still exist in it's original location, but will no longer contain your desktop files.īecause the original Desktop folder exists, using cd Desktop after opening command prompt will still work, but as it contains no files or folders, using cd SomeFolderOnTheDesktop will lead to the The system cannot find the specified path error.

If you choose to backup your Desktop with OneDrive, your desktop will silently be moved to %USERPROFILE%\OneDrive\Desktop instead of the default. This will allow you to have the same files available on each Windows computer you use that where you log into OneDrive. In later editions of Windows in particular, OneDrive is installed as part of the operating system and as part of initial setup, it will ask you if you wish to backup your documents, pictures and desktop to your OneDrive account. However, this location can also be changed by programs installed on your computer and is a common feature amongst workspace-switching/multi-desktop utilities. The location of the Desktop folder in most versions of Windows is %USERPROFILE%\Desktop, which for most users becomes C:\Users\YOURUSERNAME\Desktop. Note: This answer was discovered through conversation in the question's comments.
