OneDrive is free online storage that comes included with Windows 10 and used with your Microsoft account. Save your files to OneDrive, and you’ll be able to get to them from any PC, tablet, or phone.
By default, you can choose which folders to sync in OneDrive with your PC. Windows 10 stores your OneDrive folder in your account’s %UserProfile% folder (ex: “C:\Users\Brink”) by default.
This tutorial will show you how to sync any folder to OneDrive that is not already in OneDrive for your account in Windows 10.
- Open a command prompt.
- Type the command below into the command prompt, and press Enter. (see screenshot below)
mklink /j "%UserProfile%\OneDrive\Folder Name" "Full path of source folder"
Substitute Full path of source folder in the command above with the actual full path of the folder (ex: “F:\Example Folder”) you want to sync with your OneDrive.
Substitute Folder Name in the command above with the folder name (ex: “Example Folder”) you want to show in OneDrive. This folder is a junction point of the source folder. It would be best to use the same name as the source folder to help know what it’s linked to.
mklink /j "%UserProfile%\OneDrive\Example Folder" "F:\Example Folder"
- The source folder (ex: “F:\Example Folder”) will now be synced with your OneDrive (ex: “%UserProfile%\OneDrive\Example Folder”). Anything you copy, save, and delete in either of these two folders will also be applied to the other folder. (see screenshots below)If you want to undo this junction point and stop syncing the source folder with your OneDrive, you would only delete the folder (ex: “%UserProfile%\OneDrive\Example Folder”) in your OneDrive folder. This will not delete the source folder (ex: “F:\Example Folder”), but will also delete it from your online OneDrive.
(Source folder location)