- Find the Address of the folder you want to be synced. (ie.
G:\Games\
). Copy it. - Find the OneDrive location you wish for it to sync to. Hold shift and right click. On the context menu, click open command window here.
- In the command window type
mklink /j "YourCustomFolderName" G:\Games\
(G:\Games\
is the address of your original folder).
This is like a shortcut that tells any programs that look there to look at another directory. This will sync anything inside the address you tell it to the folder created in a onedrive directory
- open cmd box in admin mode
cd /users/<username>/OneDrive
- make a link like this:
mklink /J <name of folder> <name of folder to sync>
#Alternative using Powershell use an elevated powershell change to the one drive folder for the user and execute:
New-Item -ItemType Junction -Path "Link" -Target "Target"
Link is the name in the onedrive folder and target is where the data is coming from.
- Open Powershell in Admin mode
cd /users/<username>/OneDrive
orcd /users/<username>/OneDrive - <Company Name>
- make a link like this:
New-Item -ItemType Junction -Path "Link" -Target "Target"
https://winaero.com/create-symbolic-link-windows-10-powershell/