By default, you can choose which folders to sync in OneDrive with PC. Windows 10 stores the OneDrive folder in the account's% UserProfile% folder (for example, "C: \ Users \ Brink") by default.
This guide will show you how to sync any folder with OneDrive for accounts in Windows 10.
1. Open Command Prompt.
2. Enter the command below into the Command Prompt and press Enter.
mklink /j "%UserProfile%\OneDrive\Folder 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") 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%\OneDrive\Example Folder" "F:\Example Folder"
3. The source directory (for example, "F: \ Example Folder") will now be synchronized with OneDrive (for example, "% UserProfile% \ OneDrive \ Example Folder"). Anything you copy, save, and delete in either folder will also apply to the other.
If you want to undo this junction point (one folder actually points to another) and stop syncing the source folder with OneDrive, you'll only have to delete the folder (for example, "% UserProfile% \ OneDrive \ Example Folder ") in the OneDrive folder. This will not delete the source folder (e.g. "F: \ Example Folder"), but it will also delete it from OneDrive online.