Solved Junction with OneDrive

JerometheGiraff

New member
Member
VIP
Local time
4:58 PM
Messages
925
I'm having a problem with junctions. I posted the problem here, considering the last post was months ago; not sure it will get noticed for a while, so I decided to re-post as a new thread.

I created a junction whereas the link is the source folder, and the target is the junction as displayed in command prompt, but when I create a file and save it in either the link or the target folder neither the link or the target have the same file mirrored between both folder so to speak ?

One thing I forgot to mention is, I'm creating a junction between OneDrive and a local folder, although that shouldn't have any problems considering OneDrive local location for sending files to the cloud is X:\Users\... and behaves no different then if I was creating a junction between two local folders.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
Core2Quad (2.6 Ghz)
Motherboard
nVidia 775
Memory
8 Gigs DDR2
Graphics Card(s)
Geforce Titan Black
Sound Card
Motherboard Audio
Monitor(s) Displays
25" Asus LCD
Screen Resolution
1680x1050
Hard Drives
120 Gig SSD
60 Gig SSD
750 Gig HDD
PSU
850 Watts
Case
Mid-Size
Keyboard
Logitech
Mouse
Logitech - I love logitech mouses
Internet Speed
DSL 25Mbps - Although extremely expensive
Antivirus
Microsoft Anti-Virus
Browser
FireFox 36.x
Hello,

Out of interest, how many reparse points have you set up by now? You’ve been asking all sorts of questions regarding this topic since mid last year and you must surely have the technique down by now.

As it stands currently, there lacks sufficient detail of the problem for us to investigate and subsequently offer a solution or worthwhile suggestion for. Please provide more detail. It’s not clear what kind of answer you are expecting with the current problem statement.

I created a junction whereas the link is the source folder, and the target is the junction as displayed in command prompt, but when I create a file and save it in either the link or the target folder neither the link or the target have the same file mirrored between both folder so to speak ?
The expected outcome was not gained, so what was the outcome you got instead? A better question, what are you trying to accomplish? What have you tried? And how did your attempts not work? We can’t known unless you tell us.


I'm creating a junction between OneDrive and a local folder, although that shouldn't have any problems considering OneDrive local location for sending files to the cloud is X:\Users\... and behaves no different then if I was creating a junction between two local folders.
Right, it shouldn’t matter as long as the link and target are local and, if using junctions, on the same partition.
 

My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
The outcome I am expecting is, regardless if I copy or create a file on the linked path or the target path within a Junction the file gets duplicated between both locations.

I copy a file to a linked junction location, that file should then be duplicated / mirrored to the target junction location which is, in this case, OneDrive and automatically uploaded to the cloud in one pass. That is not happening instead, when copying a file to the linked junction location, the target (OneDrive) doesn't receive the file as you would expect the Junction to work. All I have done up to this point is create a Junction whereas I switched around what was the link and the target, to now what formally was the link is now the target, and the target is now the link and in both cases the file doesn't update between the two junction locations ?

For a Junction (folder) to work, either the link or the target cannot exist. Otherwise you get an error "cannot create file when that file already exists" That is exactly what I've done. I've deleted the linked location, but kept the target which is OneDrive. I'm unable to access the linked location within Windows without the error "cannot file specified path", but the Junction is linked to the one path; I can access the target, not the link.

When doing a directory listing for the link which is a local folder;

Code:
<JUNCTION> Avatar [C:\Users\<userName>\OneDrive\Avatars]

You can see the target is listed as a Junction and files can be wrote to it, but the linked location you cannot access or write files to it as mentioned to setup a Junction.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
Core2Quad (2.6 Ghz)
Motherboard
nVidia 775
Memory
8 Gigs DDR2
Graphics Card(s)
Geforce Titan Black
Sound Card
Motherboard Audio
Monitor(s) Displays
25" Asus LCD
Screen Resolution
1680x1050
Hard Drives
120 Gig SSD
60 Gig SSD
750 Gig HDD
PSU
850 Watts
Case
Mid-Size
Keyboard
Logitech
Mouse
Logitech - I love logitech mouses
Internet Speed
DSL 25Mbps - Although extremely expensive
Antivirus
Microsoft Anti-Virus
Browser
FireFox 36.x
Have not done much Dynamic link work for a while but it could be the nature of the target (system folder for OneDrive), that is the issue.

What I would do is disconnect the onedrive link first, Right click on icon in notification area, then create the symbolic link to a suitable folder, (empty) and once the Link is working re-start OneDrive and point it to the actual folder (not the link)

This way any file dropped into either the link or the real folder should be picked up

By the way, when using symbolic links there is ony one active location - you do not create a duplicate of a file, the Symbolic link is a transparent conduit to the actual location think of it as a super shortcut
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
Right click on icon in notification area, then create the symbolic link to a suitable folder

What do you mean right click on icon in notification area ?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
Core2Quad (2.6 Ghz)
Motherboard
nVidia 775
Memory
8 Gigs DDR2
Graphics Card(s)
Geforce Titan Black
Sound Card
Motherboard Audio
Monitor(s) Displays
25" Asus LCD
Screen Resolution
1680x1050
Hard Drives
120 Gig SSD
60 Gig SSD
750 Gig HDD
PSU
850 Watts
Case
Mid-Size
Keyboard
Logitech
Mouse
Logitech - I love logitech mouses
Internet Speed
DSL 25Mbps - Although extremely expensive
Antivirus
Microsoft Anti-Virus
Browser
FireFox 36.x
A little confusion I think Here
What I would do is disconnect the onedrive link first, Right click on icon in notification area
Just pointing out the way to disconnect the folder from the OneDrive service
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
A little confusion I think Here
What I would do is disconnect the onedrive link first, Right click on icon in notification area
Just pointing out the way to disconnect the folder from the OneDrive service

I understand but what notification area are you referring too, the notification area in the task bar in Windows ?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
Core2Quad (2.6 Ghz)
Motherboard
nVidia 775
Memory
8 Gigs DDR2
Graphics Card(s)
Geforce Titan Black
Sound Card
Motherboard Audio
Monitor(s) Displays
25" Asus LCD
Screen Resolution
1680x1050
Hard Drives
120 Gig SSD
60 Gig SSD
750 Gig HDD
PSU
850 Watts
Case
Mid-Size
Keyboard
Logitech
Mouse
Logitech - I love logitech mouses
Internet Speed
DSL 25Mbps - Although extremely expensive
Antivirus
Microsoft Anti-Virus
Browser
FireFox 36.x
The taskbar notification area of course

The little cloud icon contains the settings for onedrive, you can Unlink the current PC from Onedrive, which will remove the system status from your current onedrive folder, (and any others that may have been used as such in the past), which may allow you to create a working symbolic link, Test it, then relink the Onedrive to the Target of the symbolic link
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
Barman - That was the solution turning off OneDrive :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
Core2Quad (2.6 Ghz)
Motherboard
nVidia 775
Memory
8 Gigs DDR2
Graphics Card(s)
Geforce Titan Black
Sound Card
Motherboard Audio
Monitor(s) Displays
25" Asus LCD
Screen Resolution
1680x1050
Hard Drives
120 Gig SSD
60 Gig SSD
750 Gig HDD
PSU
850 Watts
Case
Mid-Size
Keyboard
Logitech
Mouse
Logitech - I love logitech mouses
Internet Speed
DSL 25Mbps - Although extremely expensive
Antivirus
Microsoft Anti-Virus
Browser
FireFox 36.x
Back
Top