When executing a Windows shortcut in Java (and possibly .NET and other platforms), execution of an existing shortcut works without issue, but new shortcuts fail to execute regardless of settings, permissions, working directory, contents of the shortcut target, location of the shortcut, location of the target, or any shortcut-related setting.
For reference, the code in question follows, though the problem's scope is likely wider and stranger than this specific code implies:
// Replace <SomeWindowsShortcut.lnk> with an actual shortcut name.
// Shortcuts are implemented as a file with the hidden extension "lnk"
String command = String command = "CMD /C start data\\<SomeWindowsShortcut.lnk>";
Runtime.getRuntime().exec(command);
What might cause this incompatibility and how do I fix it?