Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9082

How to set Windows Shortcut icon to relative path?

$
0
0

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?


Viewing all articles
Browse latest Browse all 9082

Trending Articles