Note To determine which OneDrive sync client you're using, see the following Microsoft website:
Consider the following scenario:
- You have configured a OneDrive for Business or SharePoint Online library to sync to your computer by using the OneDrive for Business sync app.
- You want to use an additional local path for file synchronization, but you can’t configure it in the sync app.
The mklink command is used to create symbolic links at the command prompt. To create a symbolic link to a folder, you must first create a target folder in the local OneDrive for Business location and then use the following command:
mklink /d \Path to Link\Path to Target
mklink /d c:\OneDriveLink c:\users\username\OneDrive @ Contoso\Folder
For more information, see the “How do I run a command with elevated permissions?” section in the following Microsoft resource: mklink command, see Mklink.
Note In the context of the mklink command, the original folder, or <Target>, must be the OneDrive for Business directory that's already synchronized. The new path for synchronization, or <Link>, then links to the target location.
- OneDrive for Business sync indicators (the green check mark or red X) don't appear on files that are accessed through the folder link. These files will still be synchronized and the status indicators will still be available in the original OneDrive for Business local folder location.
- NTFS symbolic links (also known as symlinks) must exist on the same drive and partition as the target.
- We don't recommend that you sync any system directories, and this includes the My Documents folder. Doing this may cause issues with various limitations in the OneDrive for Business service. These limitations include path length, characters, file size restrictions, and issues that involve adding metadata in XML-like files.
- Symlinks aren't completely transparent to applications. Syncing application folders or protected system folders by replacing them with a symlink will likely lead to issues.
- You cannot sync folders on other partitions or disks by using this method. Symlinks must exist on the same drive as the original file.
- You cannot use this workaround in reverse. The original or <Target> folder must be located in the OneDrive for Business directory.
รหัสบทความ: 3018200 - การตรวจสอบครั้งสุดท้าย: 21 ธ.ค. 2016 - ฉบับแก้ไข: 1