Shortcut Magic

Windows shortcuts aka LNK files have interesting capabilities. The shortcut target can be stored not only as a fixed-path string, but also as an item ID list. If a shortcut is equipped with such a list, it is - to a certain extent - platform-independent.

When the shortcut target is resolved, the current platform is taken into account and the resulting path is modified accordingly. Here is an example: Looking at the properties of the Internet Explorer shortcut in Start Menu on a German copy of Windows XP, you will notice that the target path points to something below “C:\Programme”:

Shortcuts - Windows XP IE link viewed from 32-bit process on German Windows XP

When you look at the properties of the same shortcut from 64-bit Explorer on Windows 7 x64 you see something entirely different:

Shortcuts - Windows XP IE link viewed from 64-bit process on Windows 7

The target path was auto-corrected from “C:\Programme” to “C:\Program Files”. And this goes event further: when viewed from a 32-bit process on Windows 7 x64 even different properties are displayed:

Shortcuts - Windows XP IE link viewed from 32-bit process on Windows 7

Now we have the 32-bit Program Files folder “C:\Program Files (x86)”.

Comments

Related Posts

Lenovo Yoga 900: SSD Upgrade & Clean Windows Installation

Lenovo Yoga 900: SSD Upgrade & Clean Windows Installation
The Lenovo Yoga 900 packs some amazing hardware in an ultraportable 1.29 kg 13" chassis: high-resolution 3200x1800 screen, Intel Core i7-6500U CPU, 16 GB RAM. The only downsides I found so far: glossy display, maximum SSD size is 512 GB, OS is Windows Home, not Pro. There is not much we can do about the former, but we can change latter two pretty easily. This article explains how to upgrade the SSD and install a clean Windows 10 Pro without any Lenovo bloatware.
Hardware