OneDrive is the online document storage solution created by Microsoft which comes bundled as a free service with Windows 10. It can be used to store your documents and other data online in the cloud. It also offers synchronization of stored data across all your devices. "Files on-demand" is a feature of OneDrive which can display placeholder versions of online files in your local OneDrive directory even if they were not synchronized and downloaded. Today, we'll see how to sync any folder to OneDrive so it will be available from any device connected with your Microsoft Account.
To make OneDrive sync a folder which is not located in your main OneDrive folder, we will create a directory junction. Directory junctions and other symbolic link types are covered in detail here:
I recommend you to read the article above if you are not familiar with symbolic links.
In short, a directory junction is a classic type of symbolic link, which does not support UNC paths (network paths that begin with \\) and relative paths. Directory junctions are supported in Windows 2000 and later NT-based Windows systems. A directory symbolic link on the other hand also supports UNC and relative paths. For today's task, directory junction is suitable.
To sync any folder to OneDrive in Windows 10, do the following.
- Open an elevated command prompt.
- Type the following command:
mklink /j "%UserProfile%\OneDrive\Folder name" "The full path to your folder". You need to substitute the 'Folder name' portion with the desired name which will reproduce your folder in the OneDrive storage. Also, provide the correct path to the destination folder that you want to sync. For example:
mklink /j "%UserProfile%\OneDrive\Winaero-folder" "c:\data\winaero".
- The specified folder will now be synced with your OneDrive.
- To stop it from syncing, remove the 'Folder name' (e.g. 'Winaero-folder') from the OneDrive folder. This won't remove your actual folder from your drive (e.g. 'c:\data\winaero').
See the following screenshot:
- Free Up Space from Locally Available OneDrive Files
- Automatically Make OneDrive Files On-Demand Online-Only in Windows 10
- Exclude OneDrive Images from Photos in Windows 10
- Disable OneDrive Cloud Icons in Navigation Pane in Windows 10
- Sign Out of OneDrive in Windows 10 (Unlink PC)
- Disable OneDrive Integration in Windows 10
- Change OneDrive Folder Location in Windows 10
- How To Add OneDrive Desktop Icon in Windows 10
- How To Reset OneDrive Sync In Windows 10
- Limit OneDrive Download and Upload Speed in Windows 10
- How To Save Screenshots Automatically to OneDrive in Windows 10
- An Official Way to Uninstall OneDrive in Windows 10
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options: