Windows technically does not support relative path shortcuts, however I say technically because there is a way to create relative path shortcuts that work on any Windows system, and it works by utilizing explorer.exe directly.
This method is much easier and quicker than the method’s already floating around on the internet, one such method involves creating a batch file and then converting it into an executable – this method works but is far more complex and time consuming.
In this post I will show you this easy method of creating relative shortcuts in windows using the shortcut wizard, follow the steps below:
- Right-click in the folder you wish to create a shortcut and navigate to “New > Shortcut”.
- In the Location field type “explorer.exe” and click “Next”.
- You will be asked for a name for the shortcut, put the name of the program or document you wish to open and click “Finish”.
- Now right-click on your new shortcut and go to “Properties”.
- Go to the shortcut tab, delete all text in the “Start in” field so that it is blank. This will ensure that when the shortcut is run it will look at the current folder first.
- Now modify the “Target” path so that it reads “%windir%\explorer.exe” followed by the relative path to your program and/or document “folder\myprogram.exe”. For example:
%windir%\explorer.exe "KeePass Data\KeePass.exe"
- Congratulations! You now have a relative shortcut working in Windows!