Forum Discussion

tompnts's avatar
tompnts
Copper Contributor
Sep 25, 2025

Syncing shortcuts between two machines with C: and D: drive

Hi guys,


A colleague of mine is having an issue where he is creating shortcuts on his laptop (which has onedrive on the c: drive), which then sync to his desktop but go on to break on that machine due to onedrive being on a D: labelled drive. Is there a way I can set up the shortcut to avoid this issue?

In case I've not explained it coherently:

- creates shortcut on laptop which is on C: drive - works on that machine

- desktop is synced to his PC, which then gets the shortcut but it is broken/cant see the designated folder due to onedrive being on D:


Any help is appreciated

1 Reply

  • This happens because Windows shortcuts save the exact file path, including the drive letter, so when OneDrive is on C: on one machine and D: on the other, the shortcut breaks after syncing. Unfortunately, shortcuts can’t be made truly “relative,” but there are a few easy workarounds. The cleanest option is to make sure OneDrive is installed in the same location on both machines so the paths match. If that’s not possible, you can create shortcuts using the cloud link from OneDrive instead of the local path, which will open correctly on both devices. Another option is to use environment variables (like %UserProfile%\OneDrive) when pointing to folders, since those adapt to the right location automatically. This way, your colleague won’t have to worry about different drive letters causing problems.

    ------------------------------------
    Don't forget to mark as solution if my answer suits you

Resources