Background
I have a Windows Shortcut that executes a file using a relative path.Now, I want this shortcut to have a nice icon. I already have the icon image and I placed it close to the bat
file my shortcut is pointing to.
Problem
The problem here is that I fail to set the path for the shortcut Icon like I set the target
. Windows seems intent in having me define an absolute path for the icon, which I can't do because it will be different from machine to machine.
So I really want the path to the icon to be relative as well.
I have tried using %CD%
but this is not recognizable, even though it works just fine in the Shortcut target
.
Question
How can I set a shortcut Icon using a relative path (to where the shortcut is) in Windows?