My scenario: I had two folders with two different artists, with two identical files in each folder - a collaborative track between these two users.
For space-preserving reasons I didn't want a duplicate file, yet deleting the track from one artist's repertoire wasn't an option. So, I decided to make a shortcut. The problem was that Windows has no easy way of making relative shortcuts. Relative shortcuts as in: shortcuts that will work even if the directory containing these files moves around. So, I looked online for tips and tricks, and the best one I found was the one below.
First, create a new shortcut (right click on anywhere that is not a file and select 'Create Shortcut'). Then, enter this:
Destination: %windir%\explorer.exe "..\A\File.mp3"
Start in: (leave blank)
..\
basically means -1 in regard to current folder structure. So if I have folders and files A\File.mp3
and B\File.mp3
, the relative file to folder A from within folder B is ..\A\File.mp3
. That's it! There you go, a fully working relative shortcut in Windows!
The caveat of this method is of course, as the %windir%\explorer.exe
implies, that this shortcut only works in Windows. Also, if you're using it in scenarios where you want to browse all files in a folder through a different interface than an explorer list view, this doesn't show up a preview or the file itself without first using the shortcut to navigate to the specific file. But that's what shortcuts do, right?
It turns out this method isn't one I can use for my duplicate artist files after all, but relevant relative shortcuts, it should come in handy!
Comments
This was pretty damn interesting. And yet, nobody's spoken! Be the first!
© CyberD.org 2024
Keeping the world since 2004.
The Comment Form