How to sync any folder with OneDrive in Windows 10
OneDrive is a free online storage that comes with Windows 10 and is used with a Microsoft account. Save files to OneDrive and you'll be able to access them from any PC, tablet or phone.
By default, you can choose which folders to sync in OneDrive with PC. Windows 10 stores the OneDrive folder in the % UserProfile% folder of the account (for example, "C: UsersBrink" ) by default.
This guide will show you how to sync any folder with OneDrive for accounts in Windows 10.
Here's how:
1. Open Command Prompt.
2. Enter the command below into the Command Prompt and press Enter
.
mklink /j "%UserProfile%OneDriveFolder Name" "Full path of source folder"
Replace the full path of the source folder in the above command with the actual full path of the directory (for example, "F: Example Folder" ) that you want to sync with OneDrive.
Replace Folder Name in the above command with the folder name (for example, "Example Folder" ) that you want to display in OneDrive. It is best to use the same name as the source directory to help know what it is linked to. For example:
mklink /j "%UserProfile%OneDriveExample Folder" "F:Example Folder"
3. The source folder (for example, "F: Example Folder" ) will now be synchronized with OneDrive (for example, "% UserProfile% OneDriveExample Folder" ). Anything you copy, save, and delete in either folder will apply to the other.
If you want to undo this junction point (a real folder pointing to another folder) and stop syncing the source folder with OneDrive, you'll only have to delete the folder (for example, "% UserProfile% OneDriveExample Folder" ) in OneDrive folder. This will not delete the source folder (e.g. "F: Example Folder" ), but it will also delete it from OneDrive online.
You should read it
- OneDrive launches file protection for Windows 10 users
- Sync Desktop, Document, ... on Windows 10 with OneDrive
- How to fix the problem of syncing OneDrive on Windows 10
- Fix the error that OneDrive files or folders could not be deleted
- How to prevent Windows from saving files to OneDrive
- How to sync Microsoft OneDrive with Linux
- How to troubleshoot OneDrive after resetting on Windows 10
- How to delay starting OneDrive on Windows 10/8/7
- Fix the loss of the OneDrive icon on the taskbar in Windows 10
- Microsoft closes the time to declare from the OneDrive desktop app on Windows 7, 8 and 8.1
- How to transfer archived data from OneDrive to another drive
- 5 ways to share files and folders from OneDrive in Windows 10