How to link a folder to oneDrive without moving the folder to the oneDrive folder in windows 10
I wanted to find out if it is possible to link my htdocs folder (which is not located in oneDrive) to oneDrive so that it will be synced without necessarily moving the folder to oneDrive. It will kind of like a copy mirroring the original htdocs folder. Changes made in the original folder will be updated in the second folder.
You can use the following command to do so, linking Pictures
to new_folder
, and OneDrive will start to sync the contents of Pictures
:
Mklink /j "%UserProfile%\OneDrive\Documents\new_folder" "H:\Documents\Pictures"