![]() Other regular folders and files are not affected, though. Since the junction directory is just a link, you cannot use the Files on Demand feature on this specific folder. Things To Keep In MindĪny changes you make in either of the folders will reflect in the other folder. Of course, when you open the junction folder, you will see all your files from the source folder.įrom this point forward, any modifications you make in the source folder will be instantly reflected in the junction folder and are synced to OneDrive. To differentiate the junction directory from the other folders, you will see a little arrow overlay icon which suggests that it is just a shortcut and not a real folder. If you open the OneDrive folder, you will see a new folder with the name you chose in the command. As soon as you execute the command, you will see the “Junction Created” message. Note: If you’ve moved the OneDrive folder from its default location, you need to modify the first path in the command to reflect that change.ģ. i.e, the folder you’d like to sync with OneDrive. The second path is the source folder path. Generally, it is helpful to name the folder the same as the source. You can name the folder anything you want by replacing “DestinationFolder”. In our case, that is in the OneDrive folder. Here, the first path is where you’d like to create the new directory junction. mklink /J "%UserProfile%\OneDrive\ DestinationFolder" " D:\SourceFolder" In the Command Prompt, execute the below command while replacing the dummy paths with the actual paths. First, open the start menu, search for “Command Prompt” and click on the result to open the Command Prompt.Ģ. To do that we need to use the Command Prompt.ġ. Steps to Sync Folder Outside OneDrive Without Moving or CopyingĪs I said, we need to create a Symbolic Link. Just follow the below steps and you will be good to go. You can learn more about the Symbolic Links from this official Microsoft Docs page. Though the junction directory looks like a regular folder for normal users, it is nothing but a kind of shortcut that lets you access the source directly. When you do this, it creates a kind of link between the source directory and the destination directory. Since we don’t want to copy or move the target folder to the OneDrive folder, we are going to create a symbolic link with directory junction. So, without further ado, let me show you how to sync any folder, no matter its location, with OneDrive. However, if you want to sync a folder that is outside the OneDrive folder without moving or copying it, then you need to do some magic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |