How do I create a folder shortcut that works for all other people?

SharePoint Asked by Saaru Lindestøkke on November 28, 2020


I have the following folder structure on a teamsite:

  |--- Carrot
  |--- Tomato
  |--- Banana

My final goal is to have folder Tomato under Fruits and to communicate to Vegetables visitors that the Tomato folder is moved.

I moved Tomato under Fruits, and to prevent that people who visit the Vegetables folder are confused, I created a link to Fruits/Tomato in Vegetables.


However, people who sync both Vegetables and Fruits folders with OneDrive for Business now see an .aspx file in Vegetables. When they click on it, various things can happen (based on what program is associated with .aspx), but they’re not transported to Fruits/Tomato.

What I tried

Regular shortcut

I tried creating a .lnk file (a regular shortcut in Windows Explorer).
This doesn’t work as .lnk files point to an absolute path.

If my OneDrive for Business syncs the Vegetables and Fruits folder they end up in:


A .lnk file in the Vegetables folder would point to c:Usersmy_userorgteamsitefruitstomato and when it’s synced to another_user the .lnk file points to a non-existent location.

Relative shortcut

This tool creates relative ‘.lnk’ files.
So now it points to ..fruitstomato.
This relative shortcut unfortunately does not work for other users for an unknown reason.

One Answer

Can you create the shortcut using the %USERPROFILE% environment variable? This then replaces C:Usersmy_user so your path the shortcut would point to would be:


This should work as it is not user specific and is just using a environment variable that should already be set.

Answered by Sam on November 28, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP