A. A. Shortcuts when created are automatically created with an UNC with \\<Computer name>\<file> in .lnk file. This is usually a problem if you copy shortcuts to other machines, however there are a number of ways to fix this.
To fix a single shortcut you can use the shortcut.exe program supplied with the Windows NT Resource Kit supplement 1 kit.
To dump out a shortcut use shortcut -u <file>.lnk
To alter the shortcut to not track the machine before you copy it to others use the command
shortcut -c -s -n <shortcut name>.lnk
To change the target and working directory on a moved shortcut use
shortcut -c -t d:\www.ntfaq.com\index.html -d d:\www.ntfaq.com -n ntfaq.lnk
To disable link tracking for all shortcuts perform the following:
- Start the registry editor
- Move to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
- If the Explorer key exists move to it, if not create it using Edit - New Key "Explorer". Select the new key
- Create a new value LinkResolveIgnoreLinkInfo of type DWORD (Edit - New DWORD value)
- Double click the new value and set to 1
- Close the registry editor
- Logon and off for the change to take effect