Go to http://www.dougknox.com and follow the link from WIN XP Fixes in the left hand pane to File Association fixes in the centre pane until you find Doug's .LNK fix, then download it. It's safe to use and just saves a lot of time and effort writing it yourself. Double click it and accept the warning and it will restore the Registry settings to normal.