Published by

Brink's Avatar

Posts: 27,164

Show Printable Version 

information   Information
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.
Note   Note
Thank you to our member cereberus for providing this idea.

Here's How:

1. Open a command prompt.

2. 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"

Note   Note
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.

For example: mklink /j "%UserProfile%\OneDrive\Example Folder" "F:\Example Folder"
Name:  mklink_OneDrive_command.png
Views: 985
Size:  11.1 KB

3. 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)
Note   Note
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)
Name:  Source_folder.jpg
Views: 991
Size:  42.9 KB

(OneDrive locations)
Name:  OneDrive_folder.jpg
Views: 995
Size:  51.6 KB Name:  Junction_point_in_OneDrive_folder.jpg
Views: 1002
Size:  46.0 KB
Name:  Online_OneDrive.jpg
Views: 989
Size:  56.9 KB

That's it,

Related Tutorials